Пример #1
0
        public void It_Renders_View_Using_View_Path_And_Model()
        {
            var spark = new SparkTest();
            var view = new StringBuilder();

            spark.ViewPathAndModel(new MessageViewModel { Message = "Hello, ViewPathAndModel!" })
                .Each(str => view.Append(str));

            Assert.AreEqual("<h1>Hello, ViewPathAndModel!</h1>", view.ToString());
        }
Пример #2
0
        public void It_Renders_View_Using_View_Path_And_Model()
        {
            var spark = new SparkTest();
            var view  = new StringBuilder();

            spark.ViewPathAndModel(new MessageViewModel {
                Message = "Hello, ViewPathAndModel!"
            })
            .Each(str => view.Append(str));

            Assert.AreEqual("<h1>Hello, ViewPathAndModel!</h1>", view.ToString());
        }