Example #1
0
        public async Task GetAll_WhenBusStopsExists_ReturnsOkResult()
        {
            var okResult = await _busStopsController.GetAllBusStops();

            Assert.IsInstanceOf <IActionResult>(okResult);
            Assert.IsInstanceOf <OkObjectResult>(okResult);
        }
Example #2
0
        public async Task GetAll_WhenBusStopsDontExist_ReturnsNotFound()
        {
            var result = await _busStopsControllerEmpty.GetAllBusStops();

            Assert.IsInstanceOf <NotFoundResult>(result);
        }