Esempio n. 1
0
        public override Dictionary <string, string> GetAdditionalProperties()
        {
            Dictionary <string, string> additionalProperties = new Dictionary <string, string>();

            additionalProperties.Add("Total capacity", TotalCapacity.ToString());
            additionalProperties.Add("Modules amount", ModulesAmount.ToString());
            additionalProperties.Add("Memory type", MemoryType);

            return(additionalProperties);
        }
Esempio n. 2
0
        /// <summary>
        /// Overrides the default implementation of GetHashCode to support using this class in unit tests
        /// </summary>
        /// <returns>Hash for the class</returns>
        public override int GetHashCode()
        {
            var hashCode = 1141414123;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Id);

            hashCode = hashCode * -1521134295 + TotalCapacity.GetHashCode();
            hashCode = hashCode * -1521134295 + AvailableCapacity.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <WeddingReservation> > .Default.GetHashCode(Reservations);

            return(hashCode);
        }