public ProductSaleService() { _dbContext = new GenericRepository(); _productService = new ProductService(); _transactionService = new AccountTransactionService(); _tupleDetailsService = new TupleDetailsService(); }
public TransactionController Build() { if (_defaultAccountTransactionService) { _accountTransactionService = DefaultAccountTransactionService().Object; } var controller = new TransactionController(_accountTransactionService); controller.Configuration = new HttpConfiguration(); controller.Request = new HttpRequestMessage(); return(controller); }
public SeatManagementService( IRepository <SeatManagement, long> repo, IRepository <VehicleTripRegistration, Guid> vehicleTripRepo, IRepository <Trip, Guid> tripRepo, IRepository <Route> routeRepo, IServiceHelper serviceHelper, IAccountTransactionService bookingAcctSvc, IUnitOfWork unitOfWork) { _repo = repo; _routeRepo = routeRepo; _unitOfWork = unitOfWork; _vehicleTripRepo = vehicleTripRepo; _tripRepo = tripRepo; _bookingAcctSvc = bookingAcctSvc; _serviceHelper = serviceHelper; }
public TransactionControllerBuilder WithAccountTransactionService(IAccountTransactionService accountTransactionService) { _defaultAccountTransactionService = false; _accountTransactionService = accountTransactionService; return(this); }
public AccountController(IUserService userService, IAccountService accountService, IAccountTransactionService accountTransactionService) { _accountTransactionService = accountTransactionService; _accountService = accountService; _userService = userService; }
public AccountTransactionApiController(IMapper mapper, IAccountTransactionService service) { _mapper = mapper; _service = service; }
public AccountService(PWContext context, IAccountTransactionService accountTransactionService) { db = context; _accountTransactionService = accountTransactionService; }
/// <summary> /// Constructor /// </summary> /// <param name="accountTransactionService"></param> public TransactionController( IAccountTransactionService accountTransactionService) { _accountTransactionService = accountTransactionService; }
public AccountTransactionController(IAccountTransactionService accountTransactionService, ILedgerAccountService ledgerAccountService, IMapping mapping) { this.accountTransactionService = accountTransactionService; this.mapping = mapping; this.ledgerAccountService = ledgerAccountService; }