コード例 #1
0
 public when_bind_account_details()
 {
     _view = new Mock<IAddEditAccountView>();
     _view.SetupAllProperties();
     var accountService = new Mock<IAccountService>();
     var accountId = Guid.NewGuid();
     accountService.Setup(a => a.GetAccount(accountId)).Returns(new Service.Edmx.Account
                                                                                                                                  {
                                                                                                                                      ID = accountId,
                                                                                                                                      Name = _accountName
                                                                                                                                  });
     _presenter = new AddEditAccountPresenter(_view.Object, accountService.Object);
     _presenter.BindAccountDetails(accountId);
 }