Exemple #1
0
        public void MoveProductToWaste()
        {
            IWasteProductService wasteProductService = IocUtil.Resolve <IWasteProductService>();
            IWarehouseService    warehouseService    = IocUtil.Resolve <IWarehouseService>();

            Product product = warehouseService.GetProducts()[0];

            WasteProduct wasteProduct = new WasteProduct {
                Name = product.Name, Date = product.Date, AssignedByDate = product.AssignedByDate, AssignedById = product.AssignedById
            };

            warehouseService.DeleteProduct(product);
            wasteProductService.Add(product);

            Assert.AreEqual(1, wasteProductService.GetList().Count);
        }
Exemple #2
0
        private void fillDataGrid()
        {
            IWasteProductService wasteProductService = IocUtil.Resolve <IWasteProductService>();

            UrunlerDataGrid.ItemsSource = wasteProductService.GetList();
        }