Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }