public ReturnBook(ILoanService loanService, IDocumentService documentService, IUserService userService, User user)
 {
     this.loanService = loanService;
     this.documentService = documentService;
     this.userService = userService;
     this.user = user;
     this.fineManager = new FineManager(this.userService, this.user);
 }
        public LoansController(
            UserManager <ApplicationUser> userManager,
            RoleManager <IdentityRole> roleManager,
            ILogger <LoansController> logger,
            IMapper mapper,
            IGenerator generator,
            IProductService productService,
            IEmployeeService employeeService,
            ICustomerService customerService,
            ILoanService loanService,
            ILoanApprovalService loanApprovalService,
            IRefundService refundService,
            IRefundConfirmService refundConfirmService

            ) : base(userManager, roleManager, mapper, generator)
        {
            _logger               = logger;
            _employeeService      = employeeService;
            _customerService      = customerService;
            _loanService          = loanService;
            _loanapprovalService  = loanApprovalService;
            _refundService        = refundService;
            _refundconfirmService = refundConfirmService;
            _productService       = productService;
        }
Beispiel #3
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     RoleManager <IdentityRole> roleManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <AccountController> logger,
     IMessager messager,
     IGenerator generator,
     IMapper mapper,
     IBranchService branchService,
     IEmployeeService employeeService,
     ICustomerService customerService,
     IDepositService depositService,
     ILoanService loanService
     ) : base(
         userManager,
         roleManager,
         mapper,
         generator)
 {
     _signInManager   = signInManager;
     _logger          = logger;
     _messager        = messager;
     _branchService   = branchService;
     _employeeService = employeeService;
     _customerService = customerService;
     _depositService  = depositService;
     _loanService     = loanService;
 }
Beispiel #4
0
        public LoanServiceTests()
        {
            IConfiguration config = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build();

            _configuration = new ConfigurationService(config);
            _service       = new LoanService(_configuration);
        }
Beispiel #5
0
 public Engine(
     IAccountService accountService,
     IGovernmentService governmentService,
     IGroupService groupService,
     IReportService reportService,
     IPlotService plotService,
     IDecisionService decisionService,
     IAudienceService audienceService,
     INewsService newsService,
     IRevolutionService revolutionService,
     IScoreService scoreService,
     IEscapeService escapeService,
     IAssassinationService assassinationService,
     ILoanService loanService,
     IWarService warService)
 {
     this.accountService       = accountService;
     this.governmentService    = governmentService;
     this.groupService         = groupService;
     this.reportService        = reportService;
     this.plotService          = plotService;
     this.decisionService      = decisionService;
     this.audienceService      = audienceService;
     this.newsService          = newsService;
     this.revolutionService    = revolutionService;
     this.scoreService         = scoreService;
     this.escapeService        = escapeService;
     this.assassinationService = assassinationService;
     this.loanService          = loanService;
     this.warService           = warService;
 }
 public LoanController(ILoanService loans, IFeeService feeService, IMemberService memberService, IBookService bookService)
 {
     _bookService   = bookService;
     _memberService = memberService;
     _loanService   = loans;
     _feeService    = feeService;
 }
Beispiel #7
0
 public AccountController(ILoanService loanService, ApplicationState applicationState,
                          UserManager <Guest> userManager, SignInManager <Guest> signInManager)
     : base(loanService, applicationState)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
 }
Beispiel #8
0
 public LoansController(ILoanService loanservice, IBookCopyService bookcopyservice, IMemberService memberservice, IDateTimeService datetimeservice)
 {
     this.loanservice     = loanservice;
     this.bookcopyservice = bookcopyservice;
     this.memberservice   = memberservice;
     this.datetimeservice = datetimeservice;
 }
        public HousingLoanServiceTests()
        {
            var calculatorValidation = new CalculatorValidation();
            var calculator           = new Calculator(calculatorValidation);

            _loanService = new HousingLoanService(calculator);
        }
Beispiel #10
0
 public BooksController(IBookService bookservice, IAuthorService authorService, IBookCopyService copyservice, ILoanService loanservice)
 {
     this.bookservice   = bookservice;
     this.authorService = authorService;
     this.copyservice   = copyservice;
     this.loanservice   = loanservice;
 }
Beispiel #11
0
 public LoansController(ILoanService loanService, IMemberService memberService, IBookService bookService, IBookCopyService bookCopyService)
 {
     this.loanService     = loanService;
     this.memberService   = memberService;
     this.bookService     = bookService;
     this.bookCopyService = bookCopyService;
 }
Beispiel #12
0
        public LoanServiceTests()
        {
            var arithmetic = new Arithmetic();

            _service = new LoanService(new CustomerRepository("prospects.txt"),
                                       new Plan(arithmetic), arithmetic);
        }
Beispiel #13
0
        private void BTNGravar_Click(object sender, EventArgs e)
        {
            LoanService = new LoanService();
            if (ValidatedForm())
            {
                if (Loan.LoanCode > 0)
                {
                    AddMovieToStock();
                    GetLoanFromDataGrid();
                    LoanService.Update(Loan);
                    MessageBox.Show("Devolução realizada com sucesso");
                }
                else
                {
                    ReduceMovieStock();
                    foreach (var loanMovie in Loan.LoanMovies)
                    {
                        loanMovie.Movie = null;
                    }
                    LoanService.Save(Loan);
                    MessageBox.Show("Locação realizada com sucesso");
                }

                ClearDataGridViewMovie();
                ClearDataLoan();
                NewLoan();
            }
        }
Beispiel #14
0
 public LoanController(ILoanService loanService, IGameService gameService, IFriendService friendService, IDunService dunService)
 {
     _loanService   = loanService;
     _gameService   = gameService;
     _friendService = friendService;
     _dunService    = dunService;
 }
 public LoansController(ILoanService loanService, IBookCopyService bookcopyService, IMemberService memberService, IBookCopyLoanService bookCopyLoanService)
 {
     _loanService         = loanService;
     _bookcopyService     = bookcopyService;
     _memberService       = memberService;
     _bookCopyLoanService = bookCopyLoanService;
 }
 public static void ResolveDependencies(IWindsorContainer container, out IAccountService accountService, out IDocumentService bookService, out IUserService userService, out ILoanService loanService)
 {
     // Resolving
     accountService = container.Resolve<IAccountService>();
     bookService = container.Resolve<IDocumentService>();
     userService = container.Resolve<IUserService>();
     loanService = container.Resolve<ILoanService>();
 }
Beispiel #17
0
 public BooksController(IBookService bookService, IAuthorService authorService, IMemberService memberService, ILoanService loanService, IBookCopyService bookCopyService)
 {
     this.bookService     = bookService;
     this.authorService   = authorService;
     this.memberService   = memberService;
     this.loanService     = loanService;
     this.bookCopyService = bookCopyService;
 }
Beispiel #18
0
 public LibraryController(IBookService bookService, IUserService userService, ILoanService loanService, IReviewService reviewService, IRecommendationService recommendationService)
 {
     _bookService           = bookService;
     _userService           = userService;
     _loanService           = loanService;
     _reviewService         = reviewService;
     _recommendationService = recommendationService;
 }
Beispiel #19
0
 public LoanController(
     ILogger <LoanController> logger,
     ILoanService loanService
     )
 {
     _logger      = logger;
     _loanService = loanService;
 }
        public PaymentOverviewControllerTests()
        {
            IConfiguration config = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build();

            _configuration = new ConfigurationService(config);
            _service       = new LoanService(_configuration);
            _controller    = new PaymentOverviewController(_service);
        }
Beispiel #21
0
 public ReviewController(ApplicationDbContext db,
                         ILoanService loanService,
                         IReviewService reviewService)
 {
     _db            = db;
     _loanService   = loanService;
     _reviewService = reviewService;
 }
Beispiel #22
0
 public LoanController(IStudentService studentService,
     IBookService bookService,
     ILoanService loanService)
 {
     this.studentService = studentService;
     this.bookService = bookService;
     this.loanService = loanService;
 }
Beispiel #23
0
        public LoansPage()
        {
            InitializeComponent();

            service = App.ServiceProvider.GetRequiredService <ILoanService>();

            Loaded += LoansPage_Loaded;
        }
Beispiel #24
0
 public HomeController(
     ILogger <HomeController> logger,
     ILoanService loanService
     )
 {
     _logger      = logger;
     _loanService = loanService;
 }
 public ReservationsController(IReservationService reservationService, IUserService userService, IBookService bookService, ILoanService loanService)
 {
     this.reservationService = reservationService;
     this.userService        = userService;
     this.bookService        = bookService;
     this.loanService        = loanService;
     this.serviceDataLookUp  = new DefaultServiceDataLookUp(loanService, reservationService);
 }
Beispiel #26
0
 public RequestController(IRequestService requestService, IUserService userService, IItemService itemService,
                          ILoanService loanService)
 {
     _requestService = requestService;
     _loanService    = loanService;
     _userService    = userService;
     _itemService    = itemService;
 }
Beispiel #27
0
 public ReturnBook(ILoanService loanService, IDocumentService documentService, IUserService userService, User user)
 {
     this.loanService     = loanService;
     this.documentService = documentService;
     this.userService     = userService;
     this.user            = user;
     this.fineManager     = new FineManager(this.userService, this.user);
 }
Beispiel #28
0
 public void Initialize()
 {
     _loan         = new Loan();
     _expectedLoan = new Loan();
     _book         = new Mock <Book>();
     _repository   = new Mock <ILoanRepository>();
     _service      = new LoanService(_repository.Object);
 }
Beispiel #29
0
 public LoanController(ILoanService loanService,
                       IMapper mapper,
                       IMessageSession messageSession)
 {
     _loanService    = loanService;
     _mapper         = mapper;
     _messageSession = messageSession;
 }
Beispiel #30
0
 public LoanBook(ILoanService loanService, IDocumentService documentService, IUserService userService, User user)
 {
     this.loanService     = loanService;
     this.documentService = documentService;
     this.userService     = userService;
     this.user            = user;
     this.fineManager     = new FineManager(this.userService, user);
     this.cd = new ConsoleDatas();
 }
 public AccountLoanService(IRepository <AccountLoan> repository, IAccountLoanRepository <AccountLoan> accRepo,
                           BankDbContext context, IRepository <Account> accountRepository, ILoanService loanService)
 {
     _repository        = repository;
     _accRepo           = accRepo;
     _context           = context;
     _accountRepository = accountRepository;
     _loanService       = loanService;
 }
Beispiel #32
0
 public void Initialize()
 {
     _book         = new Book();
     _loan         = new Loan();
     _expectedLoan = new Loan();
     _repository   = new LoanRepository();
     _service      = new LoanService(_repository);
     BaseSql.SeedDbTBLoan();
 }
Beispiel #33
0
 public CashieringController(IInsuranceDepositService insuranceDepositService, ICCSystemAirtimeService ccsystemAirtimeService,
     IAccountReceivableService accountReceivableService, ISavingDepositService savingDepositService, IMedallionService medallionService,
     ITransactionHistoryService transactionHistoryService, IBillService billService, IMemberService memberService, ICompanyService companyService, ILoanService loanService)
 {
     this.insuranceDepositService = insuranceDepositService;
     this.ccsystemAirtimeService = ccsystemAirtimeService;
     this.accountReceivableService = accountReceivableService;
     this.savingDepositService = savingDepositService;
     this.medallionService = medallionService;
     this.transactionHistoryService = transactionHistoryService;
     this.billService = billService;
     this.memberService = memberService;
     this.companyService = companyService;
     this.loanService = loanService;
 }
 public void Application_Start(out IAccountService accountService, out IDocumentService bookService, out IUserService userService, out ILoanService loanService)
 {
     container = new WindsorContainer();
     WindsorInstaller.Install(container);
     WindsorResolver.ResolveDependencies(container, out accountService, out bookService, out userService, out loanService);
 }
 public LoansController(ILoanService loanService)
 {
     this.loanService = loanService;
 }
Beispiel #36
0
		public LoanApiController(ILoanService loanService)
        {
            this._loanService = loanService;
		}
Beispiel #37
-1
 public LoanBook(ILoanService loanService, IDocumentService documentService, IUserService userService, User user)
 {
     this.loanService = loanService;
     this.documentService = documentService;
     this.userService = userService;
     this.user = user;
     this.fineManager = new FineManager(this.userService, user);
     this.cd = new ConsoleDatas();
 }