public async Task <WalletModel[]> Get(string ownerId) { var request = new GetWalletsByOwnerId() { OwnerId = ownerId }; var response = await _mediator.Send(request); return(response); }
public async Task Get_Wallets_By_Owner_Id() { var request = new GetWalletsByOwnerId { OwnerId = _ownerId }; var handler = new GetWalletsByOwnerIdHandler(_context); var response = await handler.Handle(request, CancellationToken.None); Assert.Equal(3, response.Length); }