コード例 #1
0
 public void SetUp()
 {
     theTarget    = new ConventionTarget();
     theGenerator = HtmlElementScenario <ConventionTarget> .For(x =>
     {
         x.Model = theTarget;
     });
 }
コード例 #2
0
 public void SetUp()
 {
     theTarget = new ConventionTarget();
     theGenerator = HtmlElementScenario<ConventionTarget>.For(x =>
     {
         x.Model = theTarget;
     });
 }
コード例 #3
0
 public void SetUp()
 {
     theTarget   = new ConventionTarget();
     theRegistry = new HtmlConventionRegistry();
     _generator  = new Lazy <IElementGenerator <ConventionTarget> >(() =>
     {
         return(HtmlElementScenario <ConventionTarget> .For(x =>
         {
             x.Library.Import(theRegistry.Library);
             x.Model = theTarget;
         }));
     });
 }
コード例 #4
0
        public void SetUp()
        {
            theTarget = new ConventionTarget();
            theRegistry = new HtmlConventionRegistry();
            _generator = new Lazy<IElementGenerator<ConventionTarget>>(() =>
            {
                return HtmlElementScenario<ConventionTarget>.For(x =>
                {
                    x.Library.Import(theRegistry.Library);
                    x.Model = theTarget;
                });
            });


        }