Example #1
0
 public CommandCapture(IAppConfiguration appConfiguration, ITheCatWebAPI theCatAPI, ICatBreedsRepositories breedsRepository, ICategoryRepository categoryRepository, IImageUrlRepositories imageUrlRepository)
 {
     this.appSettings        = appConfiguration.GetAppSettings();
     this.theCatAPI          = theCatAPI;
     this.breedsRepository   = breedsRepository;
     this.categoryRepository = categoryRepository;
     this.imageUrlRepository = imageUrlRepository;
 }
Example #2
0
 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;
 }
 public BreedsRepository(TheCatDBContext theCatContext, IImageUrlRepositories imageUrlRepository)
 {
     this.theCatContext      = theCatContext;
     this.imageUrlRepository = imageUrlRepository;
 }