public ExceptionalTest() { _medicineServices = new MedicineServices(medicineservice.Object); _adminMServices = new AdminMedicineServices(adminservice.Object); _user = new ApplicationUser() { UserId = "5f8054f4914569df2b9e7d8e", Name = "Uma Kumar", Email = "*****@*****.**", Password = "******", MobileNumber = 9865253568, PinCode = 820003, HouseNo_Building_Name = "9/11", Road_area = "Road_area", City = "Gaya", State = "Bihar" }; _category = new Category() { Id = "5f0ff60a7b7be11c4c3c19e1", CatId = 1, Url = "~/Home", OpenInNewWindow = false }; _medicine = new Medicine() { MedicineId = "5f802874c043a417142b7cc1", Name = "Medicine-1", Brand = "Brand-One", Price = 123, Stock = 10, Discount = 10, Details = "Medicine Details", Size = "100Mg", Features = "Medicine Feature for Medicine-1", CatId = 1 }; _appointment = new Appointment() { AppointmentId = "5f805687914569df2b9e7d90", PatientName = "Uma", DoctorName = "R Kumar", Takendate = DateTime.Now, Symtoms = "Fever", PatientAge = 30, Remark = "Patient Remark" }; _doctor = new Doctor() { DoctorId = "5f802b2ec043a417142b7cc3", Name = "R.R", Specialization = "MBBS - ENT", Qualification = "MBBS", PracticingFrom = DateTime.Now }; _medicineOrder = new MedicineOrder() { OrderId = "5f805550914569df2b9e7d8f", MedicineId = "", UserId = "" }; }
public AdminController(IAdminMedicineServices adminMedicineServices, IMedicineServices MServices) { _AMServices = adminMedicineServices; _MServices = MServices; }