Exemple #1
0
        public Deposit(int id, string description, string identityNumber, DepositTypes depositType)
        {
            Guard.AgainstNull(() => description, () => identityNumber);

            Id = id;
            Description = description;
            IdentityNumber = identityNumber;
            DepositType = depositType;
            DateCreated = DateTime.Now;
            Trades = new List<Trade>();
            Dividends = new List<Dividend>();
        }
 protected Deposit(DepositTypes type)
 {
     Type = type;
 }