Exemple #1
0
 public PaymentController(IOptionsSnapshot <PayeeInfoConfig> payeeInfoOptionsAccessor, Cart cart, StoreDbContext dbContext, ISwedbankPayClient payClient)
 {
     this.payeeInfoOptions  = payeeInfoOptionsAccessor.Value;
     this.cartService       = cart;
     this.context           = dbContext;
     this.swedbankPayClient = payClient;
 }
 public CheckOutController(IOptionsSnapshot <PayeeInfoConfig> payeeInfoOptionsAccessor,
                           IOptionsSnapshot <UrlsOptions> urlsAccessor,
                           Cart cart,
                           StoreDbContext storeDbContext,
                           ISwedbankPayClient payClient)
 {
     this.payeeInfoOptions  = payeeInfoOptionsAccessor.Value;
     this.urls              = urlsAccessor.Value;
     this.cartService       = cart;
     this.context           = storeDbContext;
     this.swedbankPayClient = payClient;
 }