private static MsFormalFeaturesPart GetPart() { MsFormalFeaturesPartSeeder seeder = new MsFormalFeaturesPartSeeder(); IItem item = new Item { FacetId = "default", CreatorId = "zeus", UserId = "zeus", Description = "Test item", Title = "Test Item", SortKey = "" }; return((MsFormalFeaturesPart)seeder.GetPart(item, null, null)); }
public void Seed_Ok() { MsFormalFeaturesPartSeeder seeder = new MsFormalFeaturesPartSeeder(); seeder.SetSeedOptions(_seedOptions); IPart part = seeder.GetPart(_item, null, _factory); Assert.NotNull(part); MsFormalFeaturesPart p = part as MsFormalFeaturesPart; Assert.NotNull(p); TestHelper.AssertPartMetadata(p); Assert.NotEmpty(p.Features); }