public function testAPI(AcceptanceTester $I)
{
$I->wantTo('test the API');
$data = new stdClass();
$data->contact = new stdClass();
$data->contact->email = $this->faker->safeEmail;
$clientId = $this->createEntity('client', $data);
$this->listEntities('clients');
$data = new stdClass();
$data->client_id = $clientId;
$data->description = $this->faker->realText(100);
$this->createEntity('task', $data);
$this->listEntities('tasks');
$lineItem = new stdClass();
$lineItem->qty = $this->faker->numberBetween(1, 10);
$lineItem->cost = $this->faker->numberBetween(1, 10);
$data = new stdClass();
$data->client_id = $clientId;
$data->invoice_items = [$lineItem];
$invoiceId = $this->createEntity('invoice', $data);
$this->listEntities('invoices');
$data = new stdClass();
$data->invoice_id = $invoiceId;
$data->amount = 1;
$this->createEntity('payment', $data);
$this->listEntities('payments');
$data = new stdClass();
$data->name = $this->faker->word;
$data->rate = $this->faker->numberBetween(1, 10);
$this->createEntity('tax_rate', $data);
$this->listEntities('tax_rates');
$data = new stdClass();
$data->product_key = $this->faker->word;
$data->notes = $this->faker->realText(100);
$this->createEntity('product', $data);
$this->listEntities('products');
$data = new stdClass();
$data->name = $this->faker->word;
$data->vendor_contacts = [];
$this->createEntity('vendor', $data);
$this->listEntities('vendors');
$this->listEntities('accounts');
$this->listEntities('dashboard');
}