public ExampleBusiness(IUnitOfWork uow,
                        INotificationHandler notifications,
                        IExampleRepository exampleRepository) : base(uow, notifications)
 {
     _exampleRepository = exampleRepository;
     _notifications     = notifications;
 }
Exemplo n.º 2
0
 public AddHandler(IContextExample context, IExampleRepository repository, IServiceExample service, RequestInjectionTestDbContext dbContext)
 {
     this.context    = context;
     this.repository = repository;
     this.service    = service;
     this.dbContext  = dbContext;
 }
Exemplo n.º 3
0
 public Scraper(IWordRespository _wordRepo, IDetailRepository _detailRepo, IExampleRepository _exampleRepo, ISynonymRepository _synonymRepo, ISubsenseRepository _subsenseRepo)
 {
     wordRepo     = _wordRepo;
     detailRepo   = _detailRepo;
     exampleRepo  = _exampleRepo;
     synonymRepo  = _synonymRepo;
     subsenseRepo = _subsenseRepo;
 }
 public UpdateExampleNameCommandHandler(
     ILogger logger,
     IExampleRepository exampleRepository,
     IValidator <UpdateExampleNameCommand> validator)
 {
     _logger            = logger;
     _exampleRepository = exampleRepository;
     _validator         = validator;
 }
 public ExampleController(INotificationHandler notifications,
                          IMapper mapper,
                          IUser user,
                          IExampleBusiness exampleBusiness,
                          IExampleRepository exampleRepository) : base(notifications, user)
 {
     _mapper            = mapper;
     _exampleBusiness   = exampleBusiness;
     _exampleRepository = exampleRepository;
 }
Exemplo n.º 6
0
 public CreateExampleCommandHandler(
     NotificationContext notificationContext,
     CommonMessages commonMessages,
     IMapper mapper,
     IApplicationUnitOfWork uow,
     IExampleRepository exampleRepository) : base(notificationContext, commonMessages, uow)
 {
     _mapper            = mapper;
     _exampleRepository = exampleRepository;
 }
Exemplo n.º 7
0
 public ExtraInjectablesController(IContextExample context,
                                   IExampleRepository repository,
                                   IServiceExample service,
                                   IExtraInjectable1 extraInjecatable1,
                                   IExtraInjectable2 extraInjectable2,
                                   IExtraInjectable3 extraInjectable3,
                                   IExtraInjectable4 extraInjectable4,
                                   RequestInjectionTestDbContext dbContext)
 {
     this.context           = context;
     this.repository        = repository;
     this.service           = service;
     this.extraInjecatable1 = extraInjecatable1;
     this.extraInjectable2  = extraInjectable2;
     this.extraInjectable3  = extraInjectable3;
     this.extraInjectable4  = extraInjectable4;
     this.dbContext         = dbContext;
 }
Exemplo n.º 8
0
        /// <summary>
        /// Sets the Datasource to be Mock or SQL
        /// </summary>
        /// <param name="dataSourceEnum">The mock status.</param>
        public static void SetDataSource(DataSourceEnum dataSourceEnum)
        {
            switch (dataSourceEnum)
            {
            /*
             * These will all use a Table store as the backend.
             * Local is used when running azure local service
             * Live and Test point to azure instances
             */
            case DataSourceEnum.Local:
            case DataSourceEnum.ServerLive:
            case DataSourceEnum.ServerTest:
                DataSourceBackendTable.Instance.SetDataSourceServerMode(dataSourceEnum);
                repository = ExampleRepositoryStore.Instance;
                break;

            case DataSourceEnum.SQL:        // Same as Mock because no sql backend for this version.
            case DataSourceEnum.Mock:
            default:
                // Default is to use the Mock
                repository = ExampleRepositoryMock.Instance;
                break;
            }
        }
Exemplo n.º 9
0
 public ExampleService(IExampleRepository repository, ILogger <ExampleService> logger, IMapper mapper)
 {
     _repository = repository;
     _logger     = logger;
     _mapper     = mapper;
 }
Exemplo n.º 10
0
 public ExampleController(IExampleRepository exampleRepository,
                          IExampleQueries exampleQueries)
 {
     _exampleRepository = exampleRepository;
     _exampleQueries    = exampleQueries;
 }
Exemplo n.º 11
0
 public MyModelController(IExampleRepository exampleRepository)
 {
     _exampleRepository = exampleRepository;
 }
 public RouteAttributeExampleController(IExampleRepository exampleRepository)
     : base(exampleRepository)
 {
 }
Exemplo n.º 13
0
 public ExampleController(IExampleRepository exampleRepository)
     : base(exampleRepository)
 {
 }
Exemplo n.º 14
0
 public ExampleQueryHandler(IExampleRepository characterRepository)
 {
     _exampleRepository = characterRepository;
 }
Exemplo n.º 15
0
 public DetailsModel(IExampleRepository repository)
 {
     _repository = repository;
 }
Exemplo n.º 16
0
 public EditModel(IExampleRepository repository)
 {
     this._repository = repository;
 }
Exemplo n.º 17
0
 public ExampleController(IExampleRepository exampleRepository)
 {
     _exampleRepository = exampleRepository;
 }
Exemplo n.º 18
0
 public ExampleService(IExampleRepository <ExampleModel> repository)
 {
     _repository = repository;
 }
Exemplo n.º 19
0
 public ExampleService(IExampleRepository exampleRepository)
 {
     _exampleRepository = exampleRepository;
 }
Exemplo n.º 20
0
 public ExampleController(ExampleDbContext context, IExampleRepository repository)
 {
     _context    = context;
     _repository = repository;
 }
Exemplo n.º 21
0
 public TokenController(IExampleRepository exampleRepository) : base(exampleRepository)
 {
     _exampleRepository = exampleRepository;
 }
Exemplo n.º 22
0
 public ExampleService(IExampleRepository exampleService)
 {
     _exampleService = exampleService;
 }
 public ExampleService(IExampleRepository exampleRepository)
 {
     this.exampleRepository = exampleRepository;
 }
Exemplo n.º 24
0
 public UnitOfWork(AppContext context)
 {
     this.context = context;
     Examples     = new ExampleRepository(context);
 }
Exemplo n.º 25
0
 public AppDbContextSeed(AppDbContext context, IExampleRepository exampleRepository)
 {
     _context           = context;
     _exampleRepository = exampleRepository;
 }
Exemplo n.º 26
0
 public ExampleBusiness(IExampleRepository exampleRepository)
 {
     _exampleRepository = exampleRepository;
 }
Exemplo n.º 27
0
 public ExampleServices(IExampleRepository exampleTransactionsRepository, RequestContext requestContext)
 {
     _exampleRepository = exampleTransactionsRepository;
     _requestContext    = requestContext;
 }
Exemplo n.º 28
0
 public ExampleController(IExampleRepository exampleRepository, IMapper <ExampleEntity, ExampleDto> exampleMapper)
 {
     _exampleRepository = exampleRepository;
     _exampleMapper     = exampleMapper;
 }
Exemplo n.º 29
0
 public ExamplesController(IExampleRepository exampleRepository, ILogger <ExamplesController> logger)
 {
     this.exampleRepository = exampleRepository;
     this.logger            = logger;
 }
 public DeleteModel(IExampleRepository repository)
 {
     this._repository = repository;
 }
 public CreateModel(IExampleRepository repository)
 {
     this._repository = repository;
 }
 public MyModelController(IExampleRepository exampleRepository)
 {
     _exampleRepository = exampleRepository;
 }