public void can_alter_settings() { _settings.Alter <MySettings>(s => { s.SomeSetting = 5; }); _settings.Bootstrap(); var settings = _settings.Get <MySettings>(); settings.SomeSetting.ShouldBe(5); }
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); }