Ejemplo n.º 1
0
        private static MsScriptsPart GetPart()
        {
            MsScriptsPartSeeder seeder = new MsScriptsPartSeeder();
            IItem item = new Item
            {
                FacetId     = "default",
                CreatorId   = "zeus",
                UserId      = "zeus",
                Description = "Test item",
                Title       = "Test Item",
                SortKey     = ""
            };

            return((MsScriptsPart)seeder.GetPart(item, null, null));
        }
Ejemplo n.º 2
0
        public void Seed_Ok()
        {
            MsScriptsPartSeeder seeder = new MsScriptsPartSeeder();

            seeder.SetSeedOptions(_seedOptions);

            IPart part = seeder.GetPart(_item, null, _factory);

            Assert.NotNull(part);

            MsScriptsPart p = part as MsScriptsPart;

            Assert.NotNull(p);

            TestHelper.AssertPartMetadata(p);

            Assert.NotEmpty(p.Scripts);
        }