private static DrawingInfoPart GetPart() { DrawingInfoPartSeeder seeder = new DrawingInfoPartSeeder(); IItem item = new Item { FacetId = "default", CreatorId = "zeus", UserId = "zeus", Description = "Test item", Title = "Test Item", SortKey = "" }; return((DrawingInfoPart)seeder.GetPart(item, null, null)); }
public void Seed_Ok() { DrawingInfoPartSeeder seeder = new DrawingInfoPartSeeder(); seeder.SetSeedOptions(_seedOptions); IPart part = seeder.GetPart(_item, null, _factory); Assert.NotNull(part); DrawingInfoPart p = part as DrawingInfoPart; Assert.NotNull(p); TestHelper.AssertPartMetadata(p); // TODO: assert properties like: // Assert.NotEmpty(p.Works); }