public void Get() { FacilityController facilityController = new FacilityController(); Facility[] cities = facilityController.Get().ToArray(); Assert.IsNotNull(cities); }
public void GetTest() { var controller = new FacilityController(fixture.Service); var result = controller.Get(); var contentResult = result as OkNegotiatedContentResult <IEnumerable <R5AppFacilityInfo> >; Assert.NotNull(contentResult); Assert.Equal(2, contentResult.Content.Count()); }