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)); }
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); }