Example #1
0
        public void DeleteUnExcitedProduct()
        {
            ConcreteProduct product = new ConcreteProduct()
            {
                Name        = "My Super Product",
                Description = "Description of my super product",
                Weight      = 100,
                Price       = 100,
                Count       = 50,
                Height      = 100,
                Width       = 100
            };

            SellService sellService = new SellService(this._repository);

            sellService.AddProduct(product);
            sellService.DeleteProduct(510);
        }
Example #2
0
        public void DeleteNormalProduct()
        {
            ConcreteProduct product = new ConcreteProduct()
            {
                Name        = "My Super Product",
                Description = "Description of my super product",
                Weight      = 100,
                Price       = 100,
                Count       = 50,
                Height      = 100,
                Width       = 100
            };

            SellService sellService = new SellService(this._repository);

            sellService.AddProduct(product);
            sellService.DeleteProduct(0);

            Assert.IsNull(this._repository.Get(0));
        }