Exemplo n.º 1
0
 public ApiClientService(IJsonSerializeService jsonSerializeService, IShowService showService, IEpisodeService episodeService, ISearchService searchService, IShowExtendedService showExtendedService)
 {
     _jsonSerializeService = jsonSerializeService;
     _showService          = showService;
     _episodeService       = episodeService;
     _searchService        = searchService;
     _showExtendedService  = showExtendedService;
 }
Exemplo n.º 2
0
 public void Init()
 {
     _jsonSerializeService = new JsonSerializeService();
     _showService          = Substitute.For <IShowService>();
     _episodeService       = Substitute.For <IEpisodeService>();
     _searchService        = Substitute.For <ISearchService>();
     _showExtendedService  = Substitute.For <IShowExtendedService>();
     _apiClientMock        = new ApiClientService(_jsonSerializeService, _showService, _episodeService, _searchService, _showExtendedService);
     _apiClientTrue        = new ApiClientService(_jsonSerializeService,
                                                  new ShowService(_httpClientWrapper),
                                                  new EpisodeService(_httpClientWrapper),
                                                  new SearchService(_httpClientWrapper),
                                                  new ShowExtendedService(_httpClientWrapper));
 }