@pytest.mark.unit
async def test_success(faker: Faker, prepare_storage: StorageBuilder, logger: Logger, payload_builder: PayloadBuilder, user: User, account: Account, category: Category) -> None:
    created_on = faker.date_time_between()
    service = OperationService(prepare_storage(account, category), logger)
    operation = (await service.add(payload=payload_builder(account, category, created_on)))
    expected = Operation(amount=Decimal('199.90'), description='', user=user, account=account, category=category, operation_type=OperationType.expense)
    expected.key = 1
    expected.created_on = created_on
    assert (operation == expected)
@pytest.mark.unit
async def test_success(faker: Faker, prepare_storage: StorageBuilder, logger: Logger, payload_builder: PayloadBuilder, user: User, account: Account, category: Category) -> None:
    created_on = faker.date_time_between()
    service = OperationService(prepare_storage(account, category), logger)
    operation = (await service.add(payload=payload_builder(account, category, created_on)))
    expected = Operation(amount=Decimal('199.90'), description=, user=user, account=account, category=category, operation_type=OperationType.expense)
    expected.key = 1
    expected.created_on = created_on
    assert (operation == expected)