Example #1
0
        public UnitOfWork(ISecretSantaDbContext dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException("Db context cannot be null");
            }

            this.dbContext = dbContext;
        }
        public EfRepository(ISecretSantaDbContext dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException("DbContext cannot be null");
            }

            this.dbContext = dbContext;
        }