import 'package:test/test.dart'; import 'package:fintracker_api/fintracker_api.dart'; /// tests for IncomeApi void main() { final instance = FintrackerApi().getIncomeApi(); group(IncomeApi, () { // Calendar // // Payments in a window, one row each; defaults to the next 12 months, forecast only. // //Future incomeCalendar({ String scope, DateTime dateFrom, DateTime dateTo, bool includePaid }) async test('test incomeCalendar', () async { // TODO }); // Forecast // // Expected income per month, split by basis, plus the yield it implies. // //Future incomeForecast({ String scope, int months }) async test('test incomeForecast', () async { // TODO }); // History // // Income actually received, grouped by month, kind and currency. `group` exists for the contract's sake and accepts only `month`: the table is stored monthly, and a finer grouping would have to re-read the ledger, which is what the calendar's `paid` rows already do per payment. // //Future incomeHistory({ String scope, String group, DateTime dateFrom, DateTime dateTo, String kind }) async test('test incomeHistory', () async { // TODO }); }); }