public void Add_ValidObject()
        {
            //Arrange
            var mockRepository = new Mock <IClothingRepository>();
            var controller     = new WardrobeController(mockRepository.Object);
            var clothing       = new Clothing()
            {
                Name = "", Material = "testMaterial0", Color = "testColor0", DateAdded = DateTime.Now
            };

            //Act
            var response = controller.Add(clothing);

            //Assert
            Assert.IsType <RedirectToActionResult>(response);
        }
        public void Add_InvalidObject()
        {
            //Arrange
            var mockRepository = new Mock <IClothingRepository>();
            var controller     = new WardrobeController(mockRepository.Object);
            var clothing       = new Clothing()
            {
                Name = "", Material = "testMaterial0", Color = "testColor0", DateAdded = DateTime.Now
            };

            controller.ModelState.AddModelError("Name", "Required");

            //Act
            var badResponse = controller.Add(clothing);

            //Assert
            Assert.IsType <ViewResult>(badResponse);
        }