Esempio n. 1
0
        public void Customer_Index_Is_Not_Null()
        {
            // Arrange
            CustomerController controller = new CustomerController();

            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
Esempio n. 2
0
        public void Customer_Details_Returns_A_Customer_Model()
        {
            // Arrange
            CustomerController controller = new CustomerController();
            Customer customer = new Customer();

            // Act
            ViewResult result = controller.Details(customer.CustomerId) as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }