Exemple #1
0
        private EstateManagmentContext GetDatabase()
        {
            var dbOptions = new DbContextOptionsBuilder <EstateManagmentContext>()
                            .UseInMemoryDatabase(Guid.NewGuid().ToString())
                            .Options;
            var db = new EstateManagmentContext(dbOptions);

            return(db);
        }
Exemple #2
0
 public MonthlyRentsService(IMapper mapper, EstateManagmentContext db)
     : base(mapper, db)
 {
 }
 public ContractsService(IMapper mapper, EstateManagmentContext db)
     : base(mapper, db)
 {
 }
Exemple #4
0
 public PaymentsService(IMapper mapper, EstateManagmentContext db, IMonthlyRentsService monthlyRentService)
     : base(mapper, db)
 {
     this.monthlyRentService = monthlyRentService;
 }
 public ContractsListViewComponent(EstateManagmentContext db)
 {
     this.db = db;
 }
 public PropertiesService(IMapper mapper, EstateManagmentContext db)
     : base(mapper, db)
 {
 }
 public RentsService(IMapper mapper, EstateManagmentContext db, IMonthlyRentsService monthlyRents)
     : base(mapper, db)
 {
     this.monthlyRents = monthlyRents;
 }
 protected BaseService(IMapper mapper, EstateManagmentContext db)
 {
     this._mapper = mapper;
     this._db     = db;
 }
 public UsersService(IMapper mapper, EstateManagmentContext db, UserManager <User> userManager)
     : base(mapper, db)
 {
     this.userManager = userManager;
 }
 public CompaniesService(EstateManagmentContext db, IMapper mapper)
     : base(mapper, db)
 {
 }