Exemplo n.º 1
0
 public ProductsController(ProductCategoriesBL productCategoriesBL,
                           ProductsBL productsBL, BrandsBL brandsBL, CountriesBL countriesBL,
                           ContentContentTypesBL contentContentTypesBL, ProductPhotosBL productPhotosBL,
                           CurrenciesBL currenciesBL)
 {
     _productCategoriesBL   = productCategoriesBL;
     _productsBL            = productsBL;
     _brandsBL              = brandsBL;
     _countriesBL           = countriesBL;
     _contentContentTypesBL = contentContentTypesBL;
     _productPhotosBL       = productPhotosBL;
     _currenciesBL          = currenciesBL;
 }
Exemplo n.º 2
0
        public void DeleteById()
        {
            //Arrange
            ResetDataBase();
            ProductCategoriesBL target = DI.Resolve <ProductCategoriesBL>();

            //Act
            target.Delete(37);

            //Asserts
            Assert.That(target.GetById(37).IsDeleted);
            Assert.That(target.GetById(38).IsDeleted);
            Assert.That(target.GetById(39).IsDeleted);
            Assert.That(target.GetById(40).IsDeleted);
            Assert.That(target.GetById(41).IsDeleted);
        }
Exemplo n.º 3
0
        public void SetPublish()
        {
            //Arrange
            ResetDataBase();
            ProductCategoriesBL target     = DI.Resolve <ProductCategoriesBL>();
            ProductsBL          productsBl = DI.Resolve <ProductsBL>();

            //Act
            target.SetPublish(65, false);

            //Asserts
            Assert.That(!target.GetById(65).Publish);
            Assert.That(!productsBl.GetById(86).Publish);
            Assert.That(!productsBl.GetById(87).Publish);
            Assert.That(!productsBl.GetById(88).Publish);
            Assert.That(!productsBl.GetById(89).Publish);
            Assert.That(!productsBl.GetById(90).Publish);
            Assert.That(!productsBl.GetById(91).Publish);
            Assert.That(!productsBl.GetById(92).Publish);
            Assert.That(!productsBl.GetById(93).Publish);
            Assert.That(!productsBl.GetById(95).Publish);
        }
Exemplo n.º 4
0
 public ProductCategoriesController(ProductCategoriesBL productCategoriesBL, PhotosBL photosBL)
 {
     _productCategoriesBL = productCategoriesBL;
     _photosBL            = photosBL;
 }
Exemplo n.º 5
0
 public ProductDetailsNodeProvider()
 {
     _productCategoriesBL = DI.Resolve <ProductCategoriesBL>();
     _productsBL          = DI.Resolve <ProductsBL>();
 }
Exemplo n.º 6
0
 public CategoriesController(ProductCategoriesBL productCategoriesBL)
 {
     _productCategoriesBL = productCategoriesBL;
 }
Exemplo n.º 7
0
 public HomeController(ProductCategoriesBL productCategoriesBL, ProductsBL productsBL, TextContentsBL textContentsBL)
 {
     _productCategoriesBL = productCategoriesBL;
     _productsBL          = productsBL;
     _textContentsBL      = textContentsBL;
 }