Example #1
0
        public void Get()
        {
            FacilityController facilityController = new FacilityController();

            Facility[] cities = facilityController.Get().ToArray();

            Assert.IsNotNull(cities);
        }
Example #2
0
        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());
        }