Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.49 KB

readme.md

File metadata and controls

51 lines (36 loc) · 1.49 KB

Build status

BlazingWaffles

Blazor wrapper around the Waffle Generator.

See Milestones for release notes.

Site is live at http://wafflegen.azurewebsites.net

Data Binding

Uses Fody PropertyChanged to implement INotifyPropertyChanged.

Clipboard

Uses TextCopy add content to the clipboard.

Tests

Uses bunit and Verify to perform snapshot testing.

public class Tests
{
    [Fact]
    public Task Component()
    {
        var services = new ServiceCollection();
        services.AddSingleton<IJSRuntime>(new MockJSRuntime());
        services.InjectMockClipboard();
        using var provider = services.BuildServiceProvider();
        var target = Render.Component<Index>(
            provider,
            template: new()
            {
                Waffle = "The Waffle",
                Sha = "TheSha"
            });
        return Verify(target);
    }
}

snippet source | anchor