public void UpdateMedicineTest() { var medicine = Enumerable.First(medicineContracts.GetAll(), x => x.MedicineId == 1); medicine.MedicineName = "Crocin"; medicineContracts.Update(medicine); }
public void UpdateMedicineTest() { var medicineFirst = medicineContracts.GetAll().FirstOrDefault(); medicineFirst.MedicineName = "Crocin"; medicineContracts.Update(medicineFirst); }