public TestContext(JquerySelector element, Action clean)
        {
            this.element = element;
            this.clean   = clean;

            Selector = Js.referenceAs <Func <string, JquerySelector> >("$");
        }
 protected void InjectTemplate(TestContext testContext, string modelName)
 {
     context  = testContext;
     template = context
                .Selector(string.Format("<script id='{0}' type='text/html'>{1}</script>", modelName.Replace("ViewModel", "View"), expected))
                .AppendTo(context.Selector("body"));
 }
Exemple #3
0
 public extern JquerySelector AppendTo(JquerySelector content);