public CardService(IUnitOfWork uow) { this._Repository = uow.GetRepository <Card>(); this._getEntityListComponent = new GetEntityListComponent(); this._addEntityComponent = new AddEntityComponent(); this._getEntityByIDComponent = new GetEntityByIDComponent(); this._editEntityComponent = new EditEntityComponent(); this._deleteEntityComponent = new DeleteEntityComponent(); }
public MovieService(IUnitOfWork uow, ApplicationUser user) { _user = user; _repository = uow.GetRepository <Movie>(); _getEntityListComponent = new GetEntityListComponent(); _addEntityComponent = new AddEntityComponent(); _getEntityByIDComponent = new GetEntityByIDComponent(); _editEntityComponent = new EditEntityComponent(); _deleteEntityComponent = new DeleteEntityComponent(); }
public TestService(IUnitOfWork uow) { _repo = uow.GetRepository <TestObj>(); _getEntityListComponent = new GetEntityListComponent(); _addEntityComponent = new AddEntityComponent(); _getEntityByIDComponent = new GetEntityByIDComponent(); _editEntityComponent = new EditEntityComponent(); _editEntityListComponent = new EditEntityListComponent(); _deleteEntityComponent = new DeleteEntityComponent(); }
public AlbumService(IUnitOfWork uow, ApplicationUser user) { _user = user; _repository = uow.GetRepository <Album>(); _tracksRepository = uow.GetRepository <Tracklist>(); _getEntityListComponent = new GetEntityListComponent(); _addEntityComponent = new AddEntityComponent(); _getEntityByIDComponent = new GetEntityByIDComponent(); _editEntityComponent = new EditEntityComponent(); _editEntityListComponent = new EditEntityListComponent(); _deleteEntityComponent = new DeleteEntityComponent(); }
public virtual void Setup() { this._getEntityByIDComponent = new GetEntityByIDComponent(); this._cardRepositoryMock = new Mock <IRepository <Card> >(); this._playerRepositoryMock = new Mock <IRepository <Player> >(); }