예제 #1
0
 public void IsValid()
 {
     var item = new RoleDto()
     {
         Name = Guid.NewGuid().ToString(),
     };
     Assert.IsTrue(item.IsValid());
 }
예제 #2
0
 public void IsInvalid()
 {
     var item = new RoleDto()
     {
         Name = string.Empty,
     };
     Assert.IsFalse(item.IsValid());
 }