///<summary>
        ///  Returns a Typed ProductDocument Entity with mock values.
        ///</summary>
        static public ProductDocument CreateMockInstance_Generated(TransactionManager tm)
        {
            ProductDocument mock = new ProductDocument();

            mock.ModifiedDate = TestUtility.Instance.RandomDateTime();

            //OneToOneRelationship
            Document mockDocumentByDocumentId = DocumentTest.CreateMockInstance(tm);

            DataRepository.DocumentProvider.Insert(tm, mockDocumentByDocumentId);
            mock.DocumentId = mockDocumentByDocumentId.DocumentId;
            //OneToOneRelationship
            Product mockProductByProductId = ProductTest.CreateMockInstance(tm);

            DataRepository.ProductProvider.Insert(tm, mockProductByProductId);
            mock.ProductId = mockProductByProductId.ProductId;

            // create a temporary collection and add the item to it
            TList <ProductDocument> tempMockCollection = new TList <ProductDocument>();

            tempMockCollection.Add(mock);
            tempMockCollection.Remove(mock);


            return((ProductDocument)mock);
        }
        ///<summary>
        ///  Update the Typed ProductDocument Entity with modified mock values.
        ///</summary>
        static public void UpdateMockInstance_Generated(TransactionManager tm, ProductDocument mock)
        {
            mock.ModifiedDate = TestUtility.Instance.RandomDateTime();

            //OneToOneRelationship
            Document mockDocumentByDocumentId = DocumentTest.CreateMockInstance(tm);

            DataRepository.DocumentProvider.Insert(tm, mockDocumentByDocumentId);
            mock.DocumentId = mockDocumentByDocumentId.DocumentId;

            //OneToOneRelationship
            Product mockProductByProductId = ProductTest.CreateMockInstance(tm);

            DataRepository.ProductProvider.Insert(tm, mockProductByProductId);
            mock.ProductId = mockProductByProductId.ProductId;
        }