Ejemplo n.º 1
0
        public async System.Threading.Tasks.Task ShouldReturnWhenUserNameNull()
        {
            UserRepositoryRequest request = new UserRepositoryRequest();

            request.PageNum = 1;
            request.Size    = 10;

            var test = new UserRepositoryProvider();
            await Assert.ThrowsAsync <ArgumentNullException>(() => test.ListRepositoriesFromGit(null, request));
        }
Ejemplo n.º 2
0
 public UserController(IConfiguration config, IHttpClientFactory clientFactory)
 {
     _repoProvider = new UserRepositoryProvider(config, clientFactory);
 }