コード例 #1
0
 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();
 }
コード例 #2
0
 protected override void OnInit(EventArgs e)
 {
     _presenter = new AccountListingPresenter(this, ServiceFactory.AccountService);
     base.OnInit(e);
 }