Ejemplo n.º 1
0
    public async Task <TransactionData> GetTransactionData(string authId)
    {
        // TODO - Unit tests
        var transactions = await _transactionsRepository.GetTransactions(authId);

        var categoryTotals = await _transactionsRepository.GetCategoryTotals(authId);

        var totals = await _transactionsRepository.GetTransactionTotals(authId);

        return(new TransactionData(transactions, categoryTotals, totals.TotalIncoming, totals.TotalOutgoing, totals.NetPosition));
    }