public void Test2() { var medicineService = new MedicineRepository(medicinecontextmock.Object); var x = medicineService.DeleteMedicine(653); Assert.IsNotNull(x); }