public void ManagerController_CentreList_returnDistributions() { //Arrange var mc = new ManagerController(); var distributionCentresBLL = new DistributionCentreBLL(); //Act var result = mc.CentreList() as ViewResult; var distributions = (List <DistributionCentre>)result.ViewData.Model; //Asert 5 distributions in the DistributionCentre Assert.AreEqual(5, distributions.Count); }
public ManagerController() { distributionCentresBLL = new DistributionCentreBLL(); reportBLL = new ReportBLL(); employeeBLL = new EmployeeBLL(); }
public ManageController() { _distributionCentreBLL = new DistributionCentreBLL(); _employeeBLL = new EmployeeBLL(); }