public CategoryService(IAuctionUnitOfWork database) { if (database == null) { throw new ArgumentNullException("database"); } Database = database; }
public LotService(IAuctionUnitOfWork database, IIdentityUnitOfWork identityDb) { if (database == null) { throw new ArgumentNullException("database"); } if (identityDb == null) { throw new ArgumentNullException("identityDb"); } IdentityDb = identityDb; Database = database; }
/// <summary> /// Provides functionality for registering, updating, finding, deleting lots and bidding. /// </summary> public LotsService(IAuctionUnitOfWork uow) { db = uow; }
public UserService(IIdentityUnitOfWork Iuow, IAuctionUnitOfWork Auow) { DbIdentity = Iuow; DbAuction = Auow; }