public JQueryElementGenerator CreateSUT()
        {
            jsCodeGenerator = new JSCodeGenerator();
            var generator = new JQueryGenerator(jsCodeGenerator);

            return((JQueryElementGenerator)generator.CreateElementGenerator("#my_root"));
        }
        public async override Task Invoke(HttpContext httpContext)
        {
            if (await base.ProcessRequest(httpContext))
            {
                IGenerator generator = new JQueryGenerator(metadata);
                var        result    = await generator.Process();

                await httpContext.Response.WriteAsync(result);
            }
        }
		public JQueryElementGenerator CreateSUT()
		{
			jsCodeGenerator = new JSCodeGenerator();
			JQueryGenerator generator = new JQueryGenerator(jsCodeGenerator);
			return (JQueryElementGenerator)generator.CreateElementGenerator("#my_root");
		}
		/// <summary>
		/// Initializes a new instance of the <see cref="JQueryElementGenerator"/> class.
		/// </summary>
		/// <param name="parent">The parent.</param>
		/// <param name="root">The root.</param>
		public JQueryElementGenerator(JQueryGenerator parent, string root)
		{
			this.parent = parent;
			this.root = root;
		}
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JQueryElementGenerator"/> class.
 /// </summary>
 /// <param name="parent">The parent.</param>
 /// <param name="root">The root.</param>
 public JQueryElementGenerator(JQueryGenerator parent, string root)
 {
     this.parent = parent;
     this.root   = root;
 }
		public void BeforeTest()
		{
			sut = CreateSUT();
		}
Beispiel #7
0
 public void BeforeTest()
 {
     sut = CreateSUT();
 }