示例#1
0
        public override bool Equals(object obj)
        {
            LetterType o = (LetterType)obj;

            return(o != null &&
                   string.Equals(o.Code, Code, StringComparison.OrdinalIgnoreCase));
        }
示例#2
0
        public ValidatedLetterRequest(LetterRequest letterRequest, Agent agent, LetterType letterType
                                      , LetterRequestTransactionParty addressee, BranchInformation branchInformation
                                      , IEnumerable <BranchInformation> agentBranchOffices
                                      , DisbursingAgent disbursingAgent
                                      , ClosingAttorneyInformation closingAttorney, IEnumerable <CCState> coveredStates
                                      , LetterRequestProcessingType processingType
                                      , IEnumerable <string> arbitrationStates)
        {
            _originalLetterRequest = letterRequest;

            Agent                 = agent;
            Addressee             = addressee;
            LetterType            = letterType;
            BranchInformation     = branchInformation;
            AgentBranchOffices    = agentBranchOffices;
            ClosingAttorney       = closingAttorney;
            CoveredStates         = coveredStates;
            ProcessingType        = processingType;
            DisbursingAgent       = disbursingAgent;
            LetterTransactionType = LetterTransactionType.GetByName(letterRequest.LetterTransactionTypeName);
            ArbitrationStates     = arbitrationStates;
        }