Esempio n. 1
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;
        }
        public override bool Equals(object obj)
        {
            LetterTransactionType o = obj as LetterTransactionType;

            return(o != null && string.Equals(o.Name, Name, StringComparison.OrdinalIgnoreCase));
        }
Esempio n. 3
0
        public bool LetterTransactionTypeIs(LetterTransactionType letterTransactionType)
        {
            var result = ValidatedLetterRequest.LetterTransactionType.Equals(letterTransactionType);

            return(result);
        }