Beispiel #1
0
 /// <summary>
 /// Construtor recebe como parâmetro a instância das classes de AppSettings, Integração e Repositórios
 /// </summary>
 /// <param name="appSettings"></param>
 /// <param name="theCatAPI"></param>
 /// <param name="breedsRepository"></param>
 /// <param name="categoryRepository"></param>
 /// <param name="imageUrlRepository"></param>
 public CommandCapture(IAppConfiguration appConfiguration, ITheCatAPI theCatAPI, IBreedsRepository breedsRepository, ICategoryRepository categoryRepository, IImageUrlRepository imageUrlRepository)
 {
     this.appSettings        = appConfiguration.GetAppSettings();
     this.theCatAPI          = theCatAPI;
     this.breedsRepository   = breedsRepository;
     this.categoryRepository = categoryRepository;
     this.imageUrlRepository = imageUrlRepository;
 }
Beispiel #2
0
 /// <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);
 }
 /// <summary>
 /// Construtor utilizado para instanciar as classes que serão testadas
 /// </summary>
 public IntegrationTest()
 {
     appConfiguration = new AppConfiguration();
     theCatAPI        = new TheCatAPIService(appConfiguration);
     elkIntegration   = new ELKIntegrationService(appConfiguration);
 }