Exemplo n.º 1
0
 public static void MyClassInitialize(TestContext testContext)
 {
     GenFormApplication.Initialize();
     _controller = GetNewController();
 }
Exemplo n.º 2
0
        public void ReturnAnErrorMessageWhenCannotDeleteProduct()
        {
            _controller = new ProductController();

            var result = _controller.DeleteProduct(Guid.NewGuid().ToString());
            Assert.IsFalse(String.IsNullOrEmpty(ActionResultParser.GetPropertyValue<String>(result, "message")));
        }
Exemplo n.º 3
0
 private void IsolateController()
 {
     _dto = Isolate.Fake.Instance<ProductDto>();
     _controller = new ProductController();
 }