Esempio n. 1
0
        public void Ssml_Amazon_Effect_generate_amazon_effect()
        {
            const string expected = @"<speak><amazon:effect name=""whispered"">Hello World</amazon:effect></speak>";

            var effect = new AmazonEffect("Hello World");

            //Can't use Comparexml because this tag has meant a change to the speech element ToXml method
            var xmlHost = new Speech();

            xmlHost.Elements.Add(effect);
            var actual = xmlHost.ToXml();

            Assert.Equal(expected, actual);
        }
Esempio n. 2
0
 public ISpeech WithEffect(AmazonEffect effect)
 {
     _writer = new AmazonEffectWriter(_writer, effect);
     return(this);
 }
 public AmazonEffectWriter(ISpeechWriter writer, AmazonEffect effect)
 {
     _writer = writer;
     _effect = effect;
 }