Ejemplo n.º 1
0
 public void IsInvalid_NoName()
 {
     var item = new MedicalRecordDto()
     {
         Name = string.Empty,
         CreationDate = DateTime.Today,
     };
     Assert.IsFalse(item.IsValid());
 }
Ejemplo n.º 2
0
 public void IsValid()
 {
     var item = new MedicalRecordDto()
     {
         Name = Guid.NewGuid().ToString(),
         CreationDate = DateTime.Today,
     };
     Assert.IsTrue(item.IsValid());
 }
Ejemplo n.º 3
0
 public void IsInvalid_NoDate()
 {
     var item = new MedicalRecordDto()
     {
         Name = Guid.NewGuid().ToString(),
         CreationDate = DateTime.MinValue,
     };
     Assert.IsFalse(item.IsValid());
 }