public async void GetNonExistingStateCities() { var controller = new GeographyController(new TestLogger <GeographyController>(), GeographyRepositoryFactory.GetInstance()); var result = await controller.GetStateCities(_nonExistingState); Assert.IsTrue(result.GetType().Equals(typeof(NotFoundResult))); }
public async Task GetExistingStateCities() { var controller = new GeographyController(new TestLogger <GeographyController>(), GeographyRepositoryFactory.GetInstance()); var result = await controller.GetStateCities(_existingState); Assert.IsTrue(result.GetType().Equals(typeof(OkObjectResult))); }