Esempio n. 1
0
        private bool Validate()
        {
            Log.Debug($"Income: Amount: {Amount}, Currency: {Currency}, When: {When}.");

            ErrorMessages.Clear();
            Validator.AddIncomeAmount(ErrorMessages, Amount);
            Validator.AddIncomeDescription(ErrorMessages, Description);
            Validator.AddIncomeCurrency(ErrorMessages, Currency);

            Log.Debug($"Income: Validation: {string.Join(", ", ErrorMessages)}.");
            return(ErrorMessages.Count == 0);
        }