public void StoreAsVariableEmail(string provider, string varName)
        {
            this.variableController.Variables.Should().NotContainKey(varName, $"переменная \"{varName}\" уже существует");
            var str = fakerGenerator.Email(provider);

            this.variableController.SetVariable(varName, str.GetType(), str);
        }
Example #2
0
        public void TryValidEmail()
        {
            var email   = generator.Email("mail");
            var address = new System.Net.Mail.MailAddress(email).Address;

            address.Should().Be(email);
        }