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

            this.dbContext = dbContext;
            this.logger    = logger;
        }
示例#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;
        }
示例#3
0
        public RestaurantRepository(PartiuAlmocoDbContext dbContext)
        {
            Guard.Against.Null(dbContext, nameof(dbContext));

            this.dbContext = dbContext;
        }