public void Index() { // Arrange ShopBridge_InventoryController controller = new ShopBridge_InventoryController(); // Act ViewResult result = controller.Index() as ViewResult; // Assert Assert.IsNotNull(result); }
public void Create() { // Arrange ShopBridge_InventoryController controller = new ShopBridge_InventoryController(); // Act PartialViewResult result = controller.Create() as PartialViewResult; // Assert Assert.IsNotNull(result); }
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); }
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); }