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()); }
public static void SetPrescription(DependencyObject target, PrescriptionDto value) { target.SetValue(PrescriptionProperty, value); }
public void Remove(PrescriptionDto prescription) { this.Prescriptions.Remove(prescription); }
/// <summary> /// Updates the specified prescription. /// </summary> /// <param name="item">The item.</param> public void Update(PrescriptionDto item) { new Updator(this.Session).Update(item); }
/// <summary> /// Removes the specified prescription. /// </summary> /// <param name="item">The item.</param> public void Remove(PrescriptionDto item) { new Remover(this.Session).Remove(item); }