Esempio n. 1
0
 public AddHandler(IContextExample context, IExampleRepository repository, IServiceExample service, RequestInjectionTestDbContext dbContext)
 {
     this.context    = context;
     this.repository = repository;
     this.service    = service;
     this.dbContext  = dbContext;
 }
Esempio n. 2
0
        static void Main()
        {
            var examples = new IServiceExample[]
            {
                new CustomersServiceExample(),
                new InvoiceServiceExample(),
                new SubscriptionServiceExample()
            }.ToList();

            examples.ForEach(e => e.Run());
        }
Esempio n. 3
0
        static void Main()
        {
            var examples = new IServiceExample[]
            {
                new CustomersServiceExample(),
                new InvoiceServiceExample(),
                new SubscriptionServiceExample(),
                new TransactionsServiceExample(),
                new CreditCardServiceExample(),
                new ACHeCheckAccountsServiceExample()
            }.ToList();

            examples.ForEach(e => e.Run());
        }
Esempio n. 4
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;
 }
Esempio n. 5
0
 public GuestsController(IServiceExample service)
 {
     _service = service;
 }