Ejemplo n.º 1
0
        public void Index()
        {
            // Arrange
            ShopBridge_InventoryController controller = new ShopBridge_InventoryController();

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

            // Assert
            Assert.IsNotNull(result);
        }
Ejemplo n.º 2
0
        public void Create()
        {
            // Arrange
            ShopBridge_InventoryController controller = new ShopBridge_InventoryController();

            // Act
            PartialViewResult result = controller.Create() as PartialViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
Ejemplo n.º 3
0
        public void GetDetails()
        {
            string obj = "apple";
            // Arrange
            ShopBridge_InventoryController controller = new ShopBridge_InventoryController();

            // Act
            ViewResult result = controller.GetDetails(obj) as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
Ejemplo n.º 4
0
        public void Create(Shopbridge_inventoryModel obj)
        {
            obj              = new Shopbridge_inventoryModel();
            obj.Name_        = "apple";
            obj.description_ = "Shimla apples";
            obj.price        = 100;
            obj.image_name   = "apple.png";
            obj.thumb_name   = "apple_thumb.jpg";
            // Arrange
            ShopBridge_InventoryController controller = new ShopBridge_InventoryController();

            // Act
            ViewResult result = controller.Create(obj) as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }