Awesome
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.
<!-- snippet: Tests --><a id='snippet-tests'></a>
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);
}
}
<sup><a href='/src/Tests/Tests.cs#L7-L29' title='Snippet source file'>snippet source</a> | <a href='#snippet-tests' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->