public string GetRandomUniqueCampaignCodeInstance() { string sourceCode; do { sourceCode = _randomStringGenerator.GetRandomUpperCaseNumericString(DEFAULT_CAMPAIGN_CODE_LENGTH); } while (!_campaignRepository.IsCampaignCodeUnique(sourceCode, 0)); return(sourceCode); }
public string GenerateClaimCode() { return(_randomStringGenerator.GetRandomUpperCaseNumericString(_length).AddSpecialCharacter(_interval, _seperator)); }