コード例 #1
0
        public Policy(string policyDetails)
        {
            DataLoadHelper dataLoadHelper = new DataLoadHelper();
            PolicyHelper   policyHelper   = new PolicyHelper();

            var detail = policyDetails.Split(",");

            ValidPolicy = policyHelper.ValidPolicyNumber(detail[0]);
            if (ValidPolicy)
            {
                PolicyNumber       = detail[0];
                PolicyStartDate    = dataLoadHelper.GetDateStarted(detail[1]);
                Premiums           = dataLoadHelper.GetIntValueFromString(detail[2]);
                Membership         = dataLoadHelper.GetMembership(detail[3]);
                DiscretionaryBonus = dataLoadHelper.GetIntValueFromString(detail[4]);
                UpliftPercentage   = dataLoadHelper.GetDecimalFromString(detail[5]);
            }
        }