Пример #1
0
 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();
 }
Пример #2
0
 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();
 }
Пример #3
0
 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();
 }
Пример #4
0
 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._editEntityComponent  = new EditEntityComponent();
     this._cardRepositoryMock   = new Mock <IRepository <Card> >();
     this._playerRepositoryMock = new Mock <IRepository <Player> >();
 }