public void When_view_a_page_that_adds_a_contact() { var repository = new Mock<IRepository>(); var controller = new HomeController(repository.Object); controller.Add(); }