SetMany() 공개 메소드

public SetMany ( ) : SimpleTemplate
리턴 SimpleTemplate
예제 #1
0
        public void CanReplaceSimpleValueUsingExpressions()
        {
            var t = new SimpleTemplate("asd${asd}asd$qwe");

            t.SetMany(asd => 123, qwe => 456);

            t.ToString().Should().Be("asd123asd456");
        }
예제 #2
0
        public void CanReplaceSimpleValueUsingAnonymousObject()
        {
            var t = new SimpleTemplate("asd${asd}asd$qwe");

            t.SetMany(new { asd = 123, qwe = 456 });

            t.ToString().Should().Be("asd123asd456");
        }