public void SetUp() { this.accountRepo = new Mock<IRepository<BankAccount, string>>(); this.typeRepo = new Mock<IRepository<BankOperationType, string>>(); this.cardRepo = new Mock<IRepository<Card, string>>(); this.fillMock = new Mock<IFillOperationFromDescriptionChain>(); this.parser = new WyplataBankomat( new RepositoryHelper(accountRepo.Object, typeRepo.Object, cardRepo.Object), new ParseHelper(), fillMock.Object); }
public void SetUp() { this.accountRepo = new Mock<IRepository<BankAccount, string>>(); this.typeRepo = new Mock<IRepository<BankOperationType, string>>(); this.cardRepo = new Mock<IRepository<Card, string>>(); this.repositoryHelper = new RepositoryHelper(accountRepo.Object, typeRepo.Object, cardRepo.Object); IFillOperationFromDescriptionChain chain = new WyplataBankomat(repositoryHelper, parseHelper, new OperacjaKarta(repositoryHelper, parseHelper, new Przelew(repositoryHelper, new PrzelewPrzychodzacy(repositoryHelper, parseHelper, new PrzelewWychodzacy(repositoryHelper, new InnaOperacja(repositoryHelper)))))); this.parser = new BgzBnpParibasParser( parseHelper, repositoryHelper, new WyplataBankomat(repositoryHelper, parseHelper, chain)); }