public HomeController(ApplicationDbContext db)
 {
     dataBaseConnection = db;
     UserService        = new UserService(dataBaseConnection);
     CreativeService    = new CreativeService(dataBaseConnection);
     TagService         = new TagService(dataBaseConnection);
 }
Exemple #2
0
 public UserController(ApplicationDbContext DataBaseConnection)
 {
     this.dataBaseConnection = DataBaseConnection;
     CreativeService         = new CreativeService(dataBaseConnection);
     UserService             = new UserService(dataBaseConnection);
     CloudinaryService       = new CloudinaryService(dataBaseConnection);
 }
Exemple #3
0
 public PlacementsController(IPlacementService placementService, IStrategyService strategyService, ICreativeService creativeService, IMappingEngine mapping)
 {
     _placementService = placementService;
     _strategyService  = strategyService;
     _creativeService  = creativeService;
     _mapping          = mapping;
 }
 public PlacementService(IRepositoryAsync <Placement> placementRepositoryAsync, IStrategyService strategyService, ICreativeService creativeService, IClock clock, IBrandscreenContext brandscreenContext)
 {
     _placementRepositoryAsync = placementRepositoryAsync;
     _strategyService          = strategyService;
     _creativeService          = creativeService;
     _clock = clock;
     _brandscreenContext = brandscreenContext;
 }
Exemple #5
0
        public CreativesController(ICreativeService creativeService, ICreativeSizeService creativeSizeService, IBrandService brandService, IAdTagTemplateService adTagTemplateService, IVastService vastService, IMappingEngine mapping, IClock clock)
        {
            _creativeService      = creativeService;
            _creativeSizeService  = creativeSizeService;
            _brandService         = brandService;
            _adTagTemplateService = adTagTemplateService;
            _vastService          = vastService;
            _mapping = mapping;
            _clock   = clock;

            Logger = NullLogger.Instance;
        }
Exemple #6
0
 //for tests
 public UserController(ICreativeService CreativeService, IUserService UserService, ICloudinaryService CloudinaryService)
 {
     this.CreativeService   = CreativeService;
     this.UserService       = UserService;
     this.CloudinaryService = CloudinaryService;
 }
 // for tests
 public AdminController(IUserService UserService, ICreativeService CreativeService)
 {
     this.UserService     = UserService;
     this.CreativeService = CreativeService;
 }
 public AdminController(ApplicationDbContext DataBaseConnection)
 {
     this.DataBaseConnection = DataBaseConnection;
     CreativeService         = new CreativeService(DataBaseConnection);
     UserService             = new UserService(DataBaseConnection);
 }
 // for tests
 public HomeController(ICreativeService CreativeService, IUserService UserService, ITagService TagService)
 {
     this.UserService     = UserService;
     this.CreativeService = CreativeService;
     this.TagService      = TagService;
 }
Exemple #10
0
 public CreativesController(ICreativeService service)
 {
     this.service = service;
 }
Exemple #11
0
 public AdminController(IAdminService service, ICreativeService creativeService, IAccountService authService)
 {
     this.service         = service;
     this.creativeService = creativeService;
     this.authService     = authService;
 }