Beispiel #1
0
 static internal InitialBalanceDto Map(TrialBalanceCommand command, InitialBalance initialBalance)
 {
     return(new InitialBalanceDto {
         Command = command,
         Entries = Map(initialBalance.Entries)
     });
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= method_.GetHashCode();
            if (IncomePerSecond != 0)
            {
                hash ^= IncomePerSecond.GetHashCode();
            }
            if (InitialBalance != 0)
            {
                hash ^= InitialBalance.GetHashCode();
            }
            if (CapBalance != 0)
            {
                hash ^= CapBalance.GetHashCode();
            }
            if (StartupPeriod != 0F)
            {
                hash ^= StartupPeriod.GetHashCode();
            }
            return(hash);
        }
Beispiel #3
0
 private bool IsWalletEnabled()
 {
     return(!String.IsNullOrWhiteSpace(Name) && !String.IsNullOrWhiteSpace(InitialBalance.ToString()) &&
            !String.IsNullOrWhiteSpace(CurrentBalance.ToString()) && (Name.Length >= 2));
 }