Ejemplo n.º 1
0
 public void SetUp()
 {
     _lib = new TagLib();
     _lib.Register(new Tags.Tiles());
     _lib.Register(new Sharp());
     _factory = new FileLocatorFactory().CloneForTagLib(_lib) as FileLocatorFactory;
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     _lib = new TagLib();
     _lib.Register(new Tags.Tiles());
     _lib.Register(new Sharp());
     _factory = new FileLocatorFactory().CloneForTagLib(_lib) as FileLocatorFactory;
 }
Ejemplo n.º 3
0
 public Formatter()
 {
     _lib           = new TagLib();
     _expressionLib = new ExpressionLib();
     _lib.Register(new Sharp());
     _lib.Register(new Macro());
 }
Ejemplo n.º 4
0
 public void SetUp()
 {
     _lib = new TagLib();
     _lib.Register(new Tags.Tiles());
     _lib.Register(new Sharp());
     _factory          = new FileLocatorFactory().CloneForTagLib(_lib) as FileLocatorFactory;
     _map              = new TilesMap();
     _data             = new Hashtable();
     _model            = new TagModel(_data);
     _nestedAttributes = new AttributeSet(
         "nested",
         new TileAttribute("aAttribute", new StringTile("aAttributeValue"))
         );
     _map.AddTile(new TemplateTile("fileWithAttributes", _factory.Handle("filewithtileattributes.htm", true),
                                   _nestedAttributes));
     _attributes = new AttributeSet(
         "main",
         new TileAttribute("simple", new StringTile("simpleValue")),
         new TileAttribute("file", new TemplateTile(null, _factory.Handle("a.htm", true), null)),
         new TileAttribute("fileWithVars", new TemplateTile(null, _factory.Handle("b.htm", true), null)),
         new TileAttribute("fileWithTilesAttributes", new TileReference("fileWithAttributes", _map))
         );
     _model.Decorate().With(_attributes);
     _data["simpleAsProperty"] = "simple";
     _data["some"]             = new Hashtable {
         { "a", "AA" }
     };
 }
        public void SetUp()
        {
            _lib = new TagLib();
            _lib.Register(new Tags.Tiles());
            _lib.Register(new Sharp());

            book = new Dictionary <string, object>
            {
                { "title", "SharpTiles integration test" },
                { "author", "R.Z. Slijp" },
                { "copyrights", "2008 (c) R.Z. Slijp" },
                {
                    "chapters", new List <object>
                    {
                        new Dictionary <string, object>
                        {
                            { "url", "#c1" },
                            { "title", "Setting up some mock templates" },
                            {
                                "paragraphs", new List <object>
                                {
                                    "aaa", "bbb", "ccc"
                                }
                            }
                        },
                        new Dictionary <string, object>
                        {
                            { "url", "#c2" },
                            { "title", "Setting up some test data" },
                            {
                                "paragraphs", new List <object>
                                {
                                    "111", "222"
                                }
                            }
                        },
                        new Dictionary <string, object>
                        {
                            { "url", "#c3" },
                            { "title", "Making the tests" },
                            {
                                "paragraphs", new List <object>
                                {
                                    "I", "II", "III", "IV", "V"
                                }
                            }
                        }
                    }
                }
            };
        }
Ejemplo n.º 6
0
 public void SetUp()
 {
     _lib = new TagLib();
     _lib.Register(new Tags.Tiles());
     _lib.Register(new Sharp());
 }
Ejemplo n.º 7
0
 public void SetUp()
 {
     _lib = new TagLib();
     _lib.Register(new Tags.Tiles());
     _lib.Register(new Sharp());
     _factory = new FileLocatorFactory().CloneForTagLib(_lib) as FileLocatorFactory;
     _map = new TilesMap();
     _data = new Hashtable();
     _model = new TagModel(_data);
     _nestedAttributes = new AttributeSet(
         "nested",
         new TileAttribute("aAttribute", new StringTile("aAttributeValue"))
         );
     _map.AddTile(new TemplateTile("fileWithAttributes", _factory.Handle("filewithtileattributes.htm", true),
                                   _nestedAttributes));
     _attributes = new AttributeSet(
         "main",
         new TileAttribute("simple", new StringTile("simpleValue")),
         new TileAttribute("file", new TemplateTile(null, _factory.Handle("a.htm", true), null)),
         new TileAttribute("fileWithVars", new TemplateTile(null, _factory.Handle("b.htm",true), null)),
         new TileAttribute("fileWithTilesAttributes", new TileReference("fileWithAttributes", _map))
         );
     _model.Decorate().With(_attributes);
     _data["simpleAsProperty"] = "simple";
     _data["some"] = new Hashtable {{"a", "AA"}};
 }
Ejemplo n.º 8
0
 public Formatter()
 {
     _lib = new TagLib();
     _expressionLib = new ExpressionLib();
     _lib.Register(new Sharp());
 }
Ejemplo n.º 9
0
 public void Register(ITagGroup group)
 {
     _lib.Register(group);
 }
Ejemplo n.º 10
0
        public void SetUp()
        {
            _lib = new TagLib();
            _lib.Register(new Tags.Tiles());
            _lib.Register(new Sharp());

            book = new Dictionary<string, object>
                       {
                           {"title", "SharpTiles integration test"},
                           {"author", "R.Z. Slijp"},
                           {"copyrights", "2008 (c) R.Z. Slijp"},
                           {
                               "chapters", new List<object>
                                               {
                                                   new Dictionary<string, object>
                                                       {
                                                           {"url", "#c1"},
                                                           {"title", "Setting up some mock templates"},
                                                           {
                                                               "paragraphs", new List<object>
                                                                                 {"aaa", "bbb", "ccc"}
                                                               }
                                                       },
                                                   new Dictionary<string, object>
                                                       {
                                                           {"url", "#c2"},
                                                           {"title", "Setting up some test data"},
                                                           {
                                                               "paragraphs", new List<object>
                                                                                 {"111", "222"}
                                                               }
                                                       },
                                                   new Dictionary<string, object>
                                                       {
                                                           {"url", "#c3"},
                                                           {"title", "Making the tests"},
                                                           {
                                                               "paragraphs", new List<object>
                                                                                 {"I", "II", "III", "IV", "V"}
                                                               }
                                                       }
                                               }
                               }
                       };
        }