public void GetLanguagesReturnsEmptyCollectionIfNoLanguagesSwitched( SwitchingLanguageDataProvider sut, CallContext context) { sut.GetLanguages(context) .Should().BeEmpty(); }
public void GetLanguagesReturnsLanguagesIfSwitched( SwitchingLanguageDataProvider sut, CallContext context) { var en = Language.Parse("en"); var da = Language.Parse("da"); var contextLanguages = new DbLanguages(en, da); using (new Switcher <DbLanguages>(contextLanguages)) { sut.GetLanguages(context) .ShouldAllBeEquivalentTo(new[] { en, da }); } }
public void SutIsDataProvider(SwitchingLanguageDataProvider sut) { sut.Should().BeAssignableTo <DataProvider>(); }