Exemple #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;
 }
Exemple #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);
        }
Exemple #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);
        }
Exemple #4
0
 public ProductCategoriesController(ProductCategoriesBL productCategoriesBL, PhotosBL photosBL)
 {
     _productCategoriesBL = productCategoriesBL;
     _photosBL            = photosBL;
 }
Exemple #5
0
 public ProductDetailsNodeProvider()
 {
     _productCategoriesBL = DI.Resolve <ProductCategoriesBL>();
     _productsBL          = DI.Resolve <ProductsBL>();
 }
Exemple #6
0
 public CategoriesController(ProductCategoriesBL productCategoriesBL)
 {
     _productCategoriesBL = productCategoriesBL;
 }
Exemple #7
0
 public HomeController(ProductCategoriesBL productCategoriesBL, ProductsBL productsBL, TextContentsBL textContentsBL)
 {
     _productCategoriesBL = productCategoriesBL;
     _productsBL          = productsBL;
     _textContentsBL      = textContentsBL;
 }