public async Task MedicineSupply_ServiceLayer_ValidInput_Pass() { MedicineSupplyService supplyService = new MedicineSupplyService(supplyRepo.Object); List <PharmacyMedicineSupply> serviceSupplyList = await supplyService.MedcineSupply(medicineDemand.Medicine, medicineDemand.Demand); Assert.AreEqual(2, serviceSupplyList.Count); }
public async Task MedicineSupply_ServiceLayer_InValidDemandCount_NullOutput() { MedicineDemand demandOfSupplier = new MedicineDemand() { Medicine = "Aspirin", Demand = 0 }; MedicineSupplyService supplyService = new MedicineSupplyService(supplyRepo.Object); List <PharmacyMedicineSupply> serviceSupplyList = await supplyService.MedcineSupply(demandOfSupplier.Medicine, demandOfSupplier.Demand); Assert.IsNull(serviceSupplyList); }