public AddHandler(IContextExample context, IExampleRepository repository, IServiceExample service, RequestInjectionTestDbContext dbContext) { this.context = context; this.repository = repository; this.service = service; this.dbContext = dbContext; }
static void Main() { var examples = new IServiceExample[] { new CustomersServiceExample(), new InvoiceServiceExample(), new SubscriptionServiceExample() }.ToList(); examples.ForEach(e => e.Run()); }
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()); }
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; }
public GuestsController(IServiceExample service) { _service = service; }