public TransferConnectionInvitationBuilder WithSenderAccount(Domain.Models.Account.Account senderAccount)
        {
            _transferConnectionInvitation.SetupProperty(i => i.SenderAccount, senderAccount);
            _transferConnectionInvitation.SetupProperty(i => i.SenderAccountId, senderAccount.Id);

            return(this);
        }
示例#2
0
 public void Arrange()
 {
     _userAccountRepository = new Mock <IUserAccountRepository>();
     _account = new Domain.Models.Account.Account {
         Name = "Test", Role = Role.Owner
     };
     _accounts = new List <Domain.Models.Account.Account> {
         _account
     };
     _userAccountRepository.Setup(repository => repository.GetAccountsByUserRef("1")).ReturnsAsync(new Accounts <Domain.Models.Account.Account> {
         AccountList = _accounts
     });
     _getUserAccountsQueryHandler = new GetUserAccountsQueryHandler(_userAccountRepository.Object);
 }