toeb / accounting

3 stars 0 forks source link

Close account command #48

Closed matthiaszoellner closed 9 years ago

matthiaszoellner commented 9 years ago

CloseAccountCommand #2 implementation with ability to close a single account or an account hierarchie of balanced accounts. Assuming, that new/active accounts are not allowed to be children to an inactive parent (see #46 )

Tests are separated by #region markers for better overview. A separate generator class for testdata was created to support tests on more complex structures.

Currently, the implementation respects the EF behavior of having null for empty list of Account.Children #47