Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public ProcessPaymentController(FiledExerciseContext context)
 {
     _context            = context;
     _paymentGatewayRepo = new PaymentGatwayRepo(_context);
 }
Ejemplo n.º 3
0
 public PaymentGatwayRepo(FiledExerciseContext context)
 {
     _context = context;
 }