Пример #1
0
        public void Setup()
        {
            var dbContext = new DbContextOptionsBuilder <FiledExerciseContext>().UseSqlServer("Server=(localdb)\\mssqllocaldb;Database=FiledExerciseContext;Trusted_Connection=True;MultipleActiveResultSets=true");

            _context = new FiledExerciseContext(dbContext.Options);
            _paymentProcessController = new ProcessPaymentController(_context);
        }
Пример #2
0
 public ProcessPaymentController(FiledExerciseContext context)
 {
     _context            = context;
     _paymentGatewayRepo = new PaymentGatwayRepo(_context);
 }
 public PaymentGatwayRepo(FiledExerciseContext context)
 {
     _context = context;
 }