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

            var fromDb = SaveAndLoadEntity(setting);
            fromDb.ShouldNotBeNull();
            fromDb.Name.ShouldEqual("Setting1");
            fromDb.Value.ShouldEqual("Value1");
            fromDb.StoreId.ShouldEqual(1);
        }
Beispiel #2
0
 public void Can_create_setting()
 {
     var setting = new Setting("Setting1", "Value1");
     setting.Name.ShouldEqual("Setting1");
     setting.Value.ShouldEqual("Value1");
 }