public void UnknownObject_get_no_url()
        {
            var entity = new Department();

            var urlProvider = new UserTestUrlProvider(GetProvider <ReadOnlyWebController <User, int> >("api/users/{id}"), httpContextAccessor);
            var result      = urlProvider.GetEntityApiUri(entity);

            Assert.Null(result);
        }
        public void GetEntityUrl_should_return_valid_url_with_inheritance_if_needed()
        {
            var entity = new UserTest();

            var urlProvider = new UserTestUrlProvider(GetProvider <ReadOnlyWebController <User, int> >("api/users/{id}"), httpContextAccessor);
            var result      = urlProvider.GetEntityApiUri(entity);

            Assert.Equal("https://mon.domain.com/specific/url/10", result.ToString());
        }