public void Configuration(IAppBuilder appBuilder) { var config = new HttpConfiguration() .ConfigIoC() .ConfigSwagger() .ConfigWebApi(); appBuilder .ConfigureLogging(AppSettingsProvider.Build <LoggingConfiguration>()) .UseCors(AppSettingsProvider.Build <CorsConfiguration>()) .UseWebApi(config); }
public void Should_bind_to_configuration() { var settings = AppSettingsProvider.Build <LoggingConfiguration>(); settings.DefaultOutput.Should().Be("template"); }