public void findByAddressTest() { // Arrange var testPeopleRepository = new TestPeopleRepository(); PeopleController testPeopleController = new PeopleController(testPeopleRepository); var expected = typeof(JsonResult); // Act var actual = testPeopleController.Get("336 FAKE ST UNIT 114 HENRY'S HOUSE"); // Assert Assert.IsType(expected, actual); }
public void findByProviderTest() { // Arrange var testPeopleRepository = new TestPeopleRepository(); PeopleController testPeopleController = new PeopleController(testPeopleRepository); var expected = typeof(JsonResult); // Act var actual = testPeopleController.Get("Provder Name"); // Assert Assert.IsType(expected, actual); }
public void DefaultTest() { // Arrange var testPeopleRepository = new TestPeopleRepository(); PeopleController testPeopleController = new PeopleController(testPeopleRepository); var expected = typeof(OkObjectResult); // Act var actual = testPeopleController.Get(); // Assert Assert.IsType(expected, actual); }