Esempio n. 1
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);
        }
Esempio n. 2
0
 public void Delete(int id)
 {
     _productCategoriesBL.Delete(id);
 }