public void Delete_NonExistingId()
        {
            //Arrange
            var mockRepository = new Mock <IClothingRepository>();
            var controller     = new WardrobeController(mockRepository.Object);
            int id             = -1;

            //Act
            var response = controller.Delete(id);

            //Assert
            Assert.IsType <NotFoundResult>(response);
        }
        public void Delete_ExistingId()
        {
            //Arrange
            int id       = 900729;
            var clothing = new Clothing()
            {
                Id = id, Name = "testName0", Material = "testMaterial0", Color = "testColor0", DateAdded = DateTime.Now
            };
            var mockRepository = new Mock <IClothingRepository>();

            mockRepository.Setup(repository => repository.GetById(id)).Returns(clothing);
            var controller = new WardrobeController(mockRepository.Object);

            //Act
            var response = controller.Delete(id);

            //Assert
            Assert.IsType <RedirectToActionResult>(response);
        }