public void can_read_settings() { _settings.Build(_ => { _.AddJsonFile("appsettings.json"); }); var settings = _settings.Get <MySettings>(); settings.SomeSetting.ShouldBe(1); }
public void can_resolve_registered_types() { _settings.Build(_ => { _.AddJsonFile("appsettings.json"); }); _settings.Bootstrap(); var container = new Container(_registry.Services); var settings = container.GetInstance <MySettings>(); settings.SomeSetting.ShouldBe(1); }