Esempio n. 1
0
        public UserRepository(PartiuAlmocoDbContext dbContext, ILogger <UserRepository> logger)
        {
            Guard.Against.Null(dbContext, nameof(dbContext));

            this.dbContext = dbContext;
            this.logger    = logger;
        }
Esempio n. 2
0
        public RestaurantPollRepository(PartiuAlmocoDbContext dbContext, IRestaurantRepository restaurantRepository)
        {
            Guard.Against.Null(dbContext, nameof(dbContext));
            Guard.Against.Null(restaurantRepository, nameof(restaurantRepository));

            this.dbContext            = dbContext;
            this.restaurantRepository = restaurantRepository;
        }
Esempio n. 3
0
        public RestaurantRepository(PartiuAlmocoDbContext dbContext)
        {
            Guard.Against.Null(dbContext, nameof(dbContext));

            this.dbContext = dbContext;
        }