Example #1
0
        public void Is_Generating_By_EmailMask1_IsMatch()
        {
            var emailMask1      = CommonObjsHelper.EmailMask1;
            var randEmailHelper = new RandomEmailByMaskHelper(emailMask1);
            var email           = randEmailHelper.Get();

            Assert.Matches("(\\b[a-z]{5}\\b)@(\\b[a-z]{5}\\b).(\\b[a-z]{2}\\b)", email);
        }
        protected override IEnumerable <Account> ChangeByRules(IEnumerable <Account> accounts)
        {
            var randomTelephoneByMaskHelper = new RandomTelephoneByMaskHelper(CommonObjsHelper.TelephoneMask1);
            var randomEmailByMaskHelper     = new RandomEmailByMaskHelper(CommonObjsHelper.EmailMask1);

            foreach (var account in accounts)
            {
                account.Name                = $"Организация №{_globalCounterBySessionApp}";
                account.Telephone1          = randomTelephoneByMaskHelper.Get();
                account.EMailAddress1       = randomEmailByMaskHelper.Get();
                account.WebSiteURL          = null;
                account.Address1_PostalCode = null;
                account.Description         = null;
                account.cmdsoft_inn         = null;
                account.ParentAccountId     = null;
                _globalCounterBySessionApp++;
                yield return(account);
            }
        }