public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (CardProcessor != 0)
            {
                hash ^= CardProcessor.GetHashCode();
            }
            if (CardAgreement.Length != 0)
            {
                hash ^= CardAgreement.GetHashCode();
            }
            if (LicenseId != 0)
            {
                hash ^= LicenseId.GetHashCode();
            }
            if (SiteId != 0)
            {
                hash ^= SiteId.GetHashCode();
            }
            if (DeviceId != 0)
            {
                hash ^= DeviceId.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (Password.Length != 0)
            {
                hash ^= Password.GetHashCode();
            }
            if (ServiceURI.Length != 0)
            {
                hash ^= ServiceURI.GetHashCode();
            }
            if (DebugLoggingEnabled != false)
            {
                hash ^= DebugLoggingEnabled.GetHashCode();
            }
            if (PorticoDeveloperId.Length != 0)
            {
                hash ^= PorticoDeveloperId.GetHashCode();
            }
            if (PorticoVersionNumber.Length != 0)
            {
                hash ^= PorticoVersionNumber.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public CardProcessorTests()
        {
            _hostProcessorService = Substitute.For <IHostProcessorService>();

            _cardProcessor = new CardProcessor(_hostProcessorService);
        }