Пример #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);
 }