コード例 #1
0
        public async Task TestGetLocationTypesAsync()
        {
            var model    = new PagingQueryBindingModel <SimpleLookupDTO>();
            var response = await controller.GetLocationTypesAsync(model);

            Assert.IsInstanceOfType(response, typeof(OkNegotiatedContentResult <PagedQueryResults <SimpleLookupDTO> >));
            locationTypeService.Verify(x => x.GetAsync(It.IsAny <QueryableOperator <SimpleLookupDTO> >()), Times.Once());
        }