public void AddNewMedicine() { var medicine = _fixture.Build <Medicine>().Create(); int previousRecords = _repository.GetMedicineList().Count; var response = _repository.AddMedicine(medicine); int recordsAfterSave = _repository.GetMedicineList().Count; response.ShouldNotBeNull(); Assert.AreEqual(previousRecords + 1, recordsAfterSave); }