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

            this.dbContext = dbContext;
        }
Example #2
0
        public Repository(IWordGameDbContext dbContext)
        {
            Guard.WhenArgument(dbContext, "dbContext cannot be null").IsNull().Throw();

            this.dbContext = dbContext;
        }