public after_initialized() { _view = new Moq.Mock<IAccountListingView>(); _view.SetupAllProperties(); var accountService = new Moq.Mock<IAccountService>(); var transactionList = GetTransactionList(); accountService.Setup(c => c.GetAllWithTransactions()).Returns(transactionList); _presenter = new AccountListingPresenter(_view.Object, accountService.Object); _presenter.Initialize(); }
protected override void OnInit(EventArgs e) { _presenter = new AccountListingPresenter(this, ServiceFactory.AccountService); base.OnInit(e); }