public void IsInvalid_NoDrug() { var item = new PrescriptionDto() { Notes = Guid.NewGuid().ToString(), }; Assert.IsFalse(item.IsValid()); }
public void IsInvalid_NoNotes() { var item = new PrescriptionDto() { Drug = new DrugDto(), Notes = string.Empty, }; Assert.IsFalse(item.IsValid()); }
public void IsValid() { var item = new PrescriptionDto() { Drug = new DrugDto(), Notes = Guid.NewGuid().ToString(), Tag = new TagDto(TagCategory.Appointment) { Id = 14 }, }; Assert.IsTrue(item.IsValid()); }