public void GivenValidInput_WhenAShoeIsCreated_ThenISeeAListOfShoes()
        {
            var controller = new ShoeController(null);
            var result = (RedirectToRouteResult) controller.Create(new DisplayShoeVM());

            result.RouteValues["action"].As<string>().Should().BeEquivalentTo("index");
        }
 public void GivenAnEmptyDatabase_WhenIAskForAllShoes_ThenIGetAViewWithNoShoes()
 {
     _service.Setup(s => s.GetShoes()).Returns(new List<Shoe>());
     var controller = new ShoeController(_service.Object);
     var result = (ViewResult) controller.Index();
     result.Model.As<List<DisplayShoeVM>>().Count.Should().Be(0);
 }