public CardService(IUnitOfWork uow) { this._Repository = uow.GetRepository <Card>(); this._getCardListComponent = new GetCardListComponent(); this._addCardComponent = new AddCardComponent(); this._getCardByIDComponent = new GetCardByIDComponent(); this._editCardComponent = new EditCardComponent(); this._deleteCardComponent = new DeleteCardComponent(); }
public void Setup() { this._addCardComponent = new AddCardComponent(); this._card = new Card { Name = "Bang!", ID = 1, Description = "Kill 'Em All", Suit = Suit.Spade, Rank = Rank.Ace, Cardtype = CardType.Basic, IsActive = true }; this._mock = new Mock <IRepository <Card> >(); }