Beispiel #1
0
 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._getCardListComponent = new GetCardListComponent();
     this._mock = new Mock <IRepository <Card> >();
 }