31. …FluentAssertions?
"Hallo Welt"
.Should()
.Be("Hallo welt");
Expected string to be "Hallo welt", but "Hallo
Welt" differs near "Wel" (index 6).
Expected string to be "Hallo welt2" with a length
of 11, but "Hallo Welt" has a length of 10.
>>> dotnet-developer-conference.de
#ddc13
37. …FeatureSwitcher?
Das ist gar nicht so einfach…
Mögliche Lösungen sind Lizenzen, Branches, Feature Toggle.
>>> dotnet-developer-conference.de
#ddc13
40. …FeatureSwitcher?
Einfaches Beispiel
Abfrage eines Features anhand des Typs.
Features.Are.ConfiguredBy.Custom(Features.OfType<Colorize>.Enabled);
if (Feature<Colorize>.Is().Enabled)
{
Console.BackgroundColor = ConsoleColor.Blue;
Console.ForegroundColor = ConsoleColor.Yellow;
}
>>> dotnet-developer-conference.de
#ddc13