public WebApiHelperWrapper(IWebApiHelper webApiHelper)
 {
     Proxy      = webApiHelper;
     GetDateNow = () => DateTime.Now;
     TestConnectionGetApiUri = string.Empty;
     CheckSmart = CheckIfNotOkAndExpired.Create(TimeSpan.FromSeconds(3));
 }
Example #2
0
 public HttpClientTracerApiProxy(IWebApiHelper webApiHelper, ApiProxyConfig apiProxyConfig)
 {
     _webApiHelper = webApiHelper;
     _config       = apiProxyConfig;
 }
 public HomeController(IWebApiHelper webapihelper)
 {
     this._webApiHelper = webapihelper;
 }
 public EmployeeRepository(IWebApiHelper webApiHelper)
 {
     _webApiHelper = webApiHelper;
 }
Example #5
0
 public LogApiProxy(IWebApiHelper webApiHelper, ApiClientConfig config)
 {
     _apiHelper = webApiHelper;
     _config    = config;
 }
 public AccountController(IWebApiHelper webapihelper)
 {
     this._webApiHelper = webapihelper;
 }
 public void Setup()
 {
     _webApiHelper  = new FakeWebApiHelper();
     _employeesRepo = new EmployeeRepository(_webApiHelper);
 }