示例#1
0
 public void Should_Get_ConnStringName_If_Not_Specified()
 {
     ConnectionStringNameAttribute
     .GetConnStringName <MyClassWithConnStringName>()
     .ShouldBe("MyDb");
 }
示例#2
0
 public void Should_Get_Class_FullName_If_Not_ConnStringNameAttribute_Specified()
 {
     ConnectionStringNameAttribute
     .GetConnStringName <MyClassWithoutConnStringName>()
     .ShouldBe(typeof(MyClassWithoutConnStringName).FullName);
 }