public PlayerService(IUnitOfWork uow) { this._Repository = uow.GetRepository <Player>(); this._getPlayerListComponent = new GetPlayerListComponent(); this._addPlayerComponent = new AddPlayerComponent(); this._getPlayerByIDComponent = new GetPlayerByIDComponent(); this._editPlayerComponent = new EditPlayerComponent(); this._deletePlayerComponent = new DeletePlayerComponent(); }
public void Setup() { this._getPlayerByIDComponent = new GetPlayerByIDComponent(); this._mock = new Mock <IRepository <Player> >(); this._player = new Player { ID = 1, Name = "Smitty Werbenjagermanjensen", IsActive = true }; }