Exemple #1
0
 Startup(Uri appConfig)
 {
     Url               = appConfig;
     HttpClient        = new HttpClient();
     HttpClientWrapper = new HttpClientWrapper(HttpClient);
     TflApiClient      = new TflApiClient(HttpClientWrapper, Url);
     ConsoleApp        = new ConsoleApp(TflApiClient);
 }
 public TflApiClientShould()
 {
     _url        = new Uri("https://www.thisisfake.com");
     _httpClient = new Mock <IHttpClient>();
     _tflClient  = new TflApiClient(_httpClient.Object, _url);
 }
 public ConsoleApp(ITFLAPIClient apiClass)
 {
     this._apiClass = apiClass;
 }
 public HomeController(ITFLAPIClient tflapiClient)
 {
     _tflapiClient = tflapiClient;
 }