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