Esempio n. 1
0
        public void ProductSpecificationAttributeController_DeletePOST_CallsDeleteOption()
        {
            var controller = GetProductSpecificationAttributeController();
            var option     = new ProductSpecificationAttribute();

            var delete = controller.Delete_POST(option);

            A.CallTo(() => _productOptionManager.DeleteSpecificationAttribute(option)).MustHaveHappened();
        }
Esempio n. 2
0
 public RedirectToRouteResult Delete_POST(ProductSpecificationAttribute option)
 {
     _productOptionManager.DeleteSpecificationAttribute(option);
     return(RedirectToAction("Index"));
 }