Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/gbiellem/BlazingWaffles

Simple Blazor wrapper around the Waffle Generator
https://github.com/gbiellem/BlazingWaffles

Last synced: 3 months ago
JSON representation

Simple Blazor wrapper around the Waffle Generator

Lists

README

        

[![Build status](https://ci.appveyor.com/api/projects/status/auc0ev6wgxs7dexo/branch/master?svg=true)](https://ci.appveyor.com/project/gbiellem/blazingwaffles/branch/master)

# BlazingWaffles

Blazor wrapper around the [Waffle Generator](https://github.com/SimonCropp/WaffleGenerator).

**See [Milestones](../../milestones?state=closed) for release notes.**

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

## Data Binding

Uses [Fody PropertyChanged](https://github.com/Fody/PropertyChanged) to implement INotifyPropertyChanged.

## Clipboard

Uses [TextCopy](https://github.com/CopyText/TextCopy) add content to the clipboard.

## Tests

Uses [bunit](https://bunit.egilhansen.com/) and [Verify](https://github.com/VerifyTests/Verify) to perform snapshot testing.


```cs
public class Tests
{
[Fact]
public Task Component()
{
var services = new ServiceCollection();
services.AddSingleton(new MockJSRuntime());
services.InjectMockClipboard();
using var provider = services.BuildServiceProvider();
var target = Render.Component(
provider,
template: new()
{
Waffle = "The Waffle",
Sha = "TheSha"
});
return Verify(target);
}
}
```
snippet source | anchor