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); }
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); }