Exemplo n.º 1
0
        public RepositoryWrapper(RoomForRentDbContext dbContext)
        {
            this.dbContext = dbContext;

            this.renterRepository      = new EfRenterRepository(dbContext);
            this.leaserRepository      = new EfLeaserRepository(dbContext);
            this.transactionRepository = new EfRenterLeaserTransactionRepository(dbContext, renterRepository, leaserRepository);
        }
        public EfRenterLeaserTransactionRepository(
            RoomForRentDbContext roomForRentDbContext,
            IRenterRepository renterRepository,
            ILeaserRepository leaserRepository
            )
        {
            this.roomForRentDbContext = roomForRentDbContext;

            this.RenterRepository = renterRepository;
            this.LeaserRepository = leaserRepository;
        }
        public RenterLeaserTransactionService(IRepositoryWrapper repositoryWrapper)
        {
            this.repositoryWrapper     = repositoryWrapper;
            this.transactionRepository = this.repositoryWrapper.TransactionRepository;

            this.renterRepository = repositoryWrapper.RenterRepository;
            this.leaserRepository = repositoryWrapper.LeaserRepository;

            this.leaserService = new LeaserService(this.leaserRepository);
            this.renterService = new RenterService(this.renterRepository);
        }
Exemplo n.º 4
0
        public RenterController(IOptions <RoomForRentOptions> optionsAccessor, IRepositoryWrapper repositoryWrapper)
        {
            this.repositoryWrapper = repositoryWrapper;
            this.optionsAccessor   = optionsAccessor;
            this.ItemsPerPage      = optionsAccessor.Value.ItemsPerPage;

            this.renterRepository = repositoryWrapper.RenterRepository;
            renterService         = new RenterService(renterRepository);

            this.transactionService = new RenterLeaserTransactionService(repositoryWrapper);
        }
Exemplo n.º 5
0
 public RenterService(IRenterRepository renterRepository)
 {
     this.renterRepository = renterRepository;
 }
Exemplo n.º 6
0
		public RenterService(IRenterRepository theRenterRepository)
		{
			_renterRepository = theRenterRepository;
		}
Exemplo n.º 7
0
 public RenterService(IRenterRepository theRenterRepository)
 {
     _renterRepository = theRenterRepository;
 }