public void PackagesInCenterTest()
        {
            int userID      = 1;
            var packageList = packageService.AllPackagesInCenter(userID);
            int test        = packageList.Count();
            var center      = packageDao.DistributionCenters.Find(userID);
            var packages    = from e in center.Packages
                              select e;
            int result = packages.Count();

            Assert.AreEqual(test, result);
        }
Ejemplo n.º 2
0
 public ActionResult StockTakingReport()
 {
     return(View(packageServies.AllPackagesInCenter(WebSecurity.CurrentUserId)));
 }