public void Can_save_and_load_setting()
        {
            var setting = new Setting
            {
                Name = "Setting1",
                Value = "Value1",
            };

            var fromDb = SaveAndLoadEntity(setting);
            fromDb.ShouldNotBeNull();
            fromDb.Name.ShouldEqual("Setting1");
            fromDb.Value.ShouldEqual("Value1");
        }
Exemplo n.º 2
0
 public void Can_get_typed_setting_value()
 {
     var setting = new Setting("IntSetting", "1000");
     setting.As<int>().ShouldBe<int>();
     setting.As<int>().ShouldEqual(1000);
 }
Exemplo n.º 3
0
 public void Can_create_setting()
 {
     var setting = new Setting("Setting1", "Value1");
     setting.Name.ShouldEqual("Setting1");
     setting.Value.ShouldEqual("Value1");
 }