コード例 #1
0
        public string GetRandomUniqueCampaignCodeInstance()
        {
            string sourceCode;

            do
            {
                sourceCode = _randomStringGenerator.GetRandomUpperCaseNumericString(DEFAULT_CAMPAIGN_CODE_LENGTH);
            } while (!_campaignRepository.IsCampaignCodeUnique(sourceCode, 0));

            return(sourceCode);
        }
コード例 #2
0
 public string GenerateClaimCode()
 {
     return(_randomStringGenerator.GetRandomUpperCaseNumericString(_length).AddSpecialCharacter(_interval,
                                                                                                _seperator));
 }