Пример #1
0
 public CategoryService(IAuctionUnitOfWork database)
 {
     if (database == null)
     {
         throw new ArgumentNullException("database");
     }
     Database = database;
 }
Пример #2
0
        public LotService(IAuctionUnitOfWork database, IIdentityUnitOfWork identityDb)
        {
            if (database == null)
            {
                throw new ArgumentNullException("database");
            }

            if (identityDb == null)
            {
                throw new ArgumentNullException("identityDb");
            }
            IdentityDb = identityDb;
            Database   = database;
        }
Пример #3
0
 /// <summary>
 /// Provides functionality for registering, updating, finding, deleting lots and bidding.
 /// </summary>
 public LotsService(IAuctionUnitOfWork uow)
 {
     db = uow;
 }
Пример #4
0
 public UserService(IIdentityUnitOfWork Iuow, IAuctionUnitOfWork Auow)
 {
     DbIdentity = Iuow;
     DbAuction  = Auow;
 }