public void SetUp() { this._documentPattern = DocumentPatternFactory.Instance.CreateNew(); this._documentPattern.Id = UniqueId; DocumentPatternFactory.Instance.Save(this._documentPattern); this._contentPattern = ContentPatternFactory.Instance.CreateNew(); this._contentPattern.Id = ContentPatternTest.UniqueId; }
public void SetUp() { this._documentPattern = DocumentPatternFactory.Instance.CreateNew(); this._documentPattern.Id = DocumentPatternTest.UniqueId; this._contentPattern = ContentPatternFactory.Instance.CreateNew(); this._contentPattern.Id = ContentPatternTest.UniqueId; this._contentPattern.Height = ContentPatternTest.SampleHeight; this._contentPattern.Width = ContentPatternTest.SampleWidth; this._contentPattern.X = ContentPatternTest.SampleX; this._contentPattern.Y = ContentPatternTest.SampleY; this._documentPattern.Contents.Add((ContentPattern) this._contentPattern); this._document = DocumentFactory.Instance.CreateNew(); this._document.InitContentsData((DocumentPattern) this._documentPattern); }
public void SetUp() { this._contentPattern = ContentPatternFactory.Instance.CreateNew(); this._contentPattern.Id = UniqueId; }
public DocumentPattern AddContentToDocumentPattern(DocumentPattern docPattern, ContentPattern contentPattern) { docPattern.Contents.Add(contentPattern); return docPattern; }
public void SaveContentPattern(ContentPattern contentPattern) { ContentPatternFactory.Instance.Save(contentPattern); }