예제 #1
0
        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);
        }
예제 #2
0
 public ManagerController()
 {
     distributionCentresBLL = new DistributionCentreBLL();
     reportBLL   = new ReportBLL();
     employeeBLL = new EmployeeBLL();
 }
예제 #3
0
 public ManageController()
 {
     _distributionCentreBLL = new DistributionCentreBLL();
     _employeeBLL           = new EmployeeBLL();
 }