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); }
public ProcessPaymentController(FiledExerciseContext context) { _context = context; _paymentGatewayRepo = new PaymentGatwayRepo(_context); }
public PaymentGatwayRepo(FiledExerciseContext context) { _context = context; }