public void ErrorWhen404() { using (WebApp.Start <Startup>(AlternateUrl)) { var sut = new AppSettingsProvider(); var toggle = new InvalidHttpJsonToggle(); Assert.Throws <WebException>(() => sut.EvaluateBooleanToggleValue(toggle)); } }
public void ReadBooleanFalseFromHttpJsonEndpoint() { using (WebApp.Start <Startup>(Url)) { var sut = new AppSettingsProvider(); var toggle = new HttpJsonFalseToggle(); Assert.False(sut.EvaluateBooleanToggleValue(toggle)); } }