public CatsBreedsController(ICatBreedsRepositories breedsRepository, IImageUrlRepositories imageUrlRepositories, ICommandCapture commandCapture, ILogger <CatsBreedsController> logger) { stopWatch = new Stopwatch(); this.breedsRepository = breedsRepository; this.imageUrlRepositories = imageUrlRepositories; this.commandCapture = commandCapture; this.logger = logger; }
/// <summary> /// Construtor utilizado para instaciar as classes que serĂ£o testadas /// </summary> public ApplicationTest() { appConfiguration = new AppConfiguration(); theCatDBContext = new TheCatDBContext(appConfiguration); theCatAPI = new TheCatAPIService(appConfiguration); imageUrlRepository = new ImageUrlRepository(theCatDBContext); breedsRepository = new BreedsRepository(theCatDBContext, imageUrlRepository); categoryRepository = new CategoryRepository(theCatDBContext); commandCapture = new CommandCapture(appConfiguration, theCatAPI, breedsRepository, categoryRepository, imageUrlRepository); }