Exemple #1
0
        private ApiRootController createController(string uri, IRegisterService registerService, IRegisterItemService registerItemService)
        {
            var controller = new ApiRootController(null, null, registerService, registerItemService, null, null, null, null, null);

            controller.Request = new HttpRequestMessage(HttpMethod.Get, uri);
            return(controller);
        }
Exemple #2
0
        public void GetReturnsValidUrls()
        {
            var controller = new ApiRootController(
                Mocks.GetMockedLogger <SortingController>());

            var info = controller.Get();

            Assert.NotNull(info);
            Assert.NotNull(info.SortingUrl);
            Assert.NotEmpty(info.SortingUrl);
        }