Esempio n. 1
0
 public void TestStringMappingNullSet()
 {
     var mapping = new ColumnPropertyMapping<TestUser, string>("UserName", model => model.Name);
     var user = new TestUser();
     Assert.Equal(null, mapping.GetValue(user));
 }
Esempio n. 2
0
 public void TestStringMappingGet()
 {
     var mapping = new ColumnPropertyMapping<TestUser, string>("UserName", model => model.Name);
     var user = new TestUser {Name = "Arne"};
     Assert.Equal("Arne", mapping.GetValue(user));
 }