///<summary> /// Returns a Typed TestIssue117Tablec Entity with mock values. ///</summary> static public TestIssue117Tablec CreateMockInstance_Generated(TransactionManager tm) { TestIssue117Tablec mock = new TestIssue117Tablec(); mock.DumbField = TestUtility.Instance.RandomBoolean(); //OneToOneRelationship TestIssue117Tablea mockTestIssue117TableaByTestIssue117TableAid = TestIssue117TableaTest.CreateMockInstance(tm); DataRepository.TestIssue117TableaProvider.Insert(tm, mockTestIssue117TableaByTestIssue117TableAid); mock.TestIssue117TableAid = mockTestIssue117TableaByTestIssue117TableAid.TestIssue117TableAid; //OneToOneRelationship TestIssue117Tableb mockTestIssue117TablebByTestIssue117TableBid = TestIssue117TablebTest.CreateMockInstance(tm); DataRepository.TestIssue117TablebProvider.Insert(tm, mockTestIssue117TablebByTestIssue117TableBid); mock.TestIssue117TableBid = mockTestIssue117TablebByTestIssue117TableBid.TestIssue117TableBid; // create a temporary collection and add the item to it TList <TestIssue117Tablec> tempMockCollection = new TList <TestIssue117Tablec>(); tempMockCollection.Add(mock); tempMockCollection.Remove(mock); return((TestIssue117Tablec)mock); }
///<summary> /// Update the Typed TestIssue117Tablea Entity with modified mock values. ///</summary> static public void UpdateMockInstance(TransactionManager tm, TestIssue117Tablea mock) { TestIssue117TableaTest.UpdateMockInstance_Generated(tm, mock); // make any alterations necessary // (i.e. for DB check constraints, special test cases, etc.) SetSpecialTestData(mock); }
///<summary> /// Returns a Typed TestIssue117Tablea Entity with mock values. ///</summary> static public TestIssue117Tablea CreateMockInstance(TransactionManager tm) { // get the default mock instance TestIssue117Tablea mock = TestIssue117TableaTest.CreateMockInstance_Generated(tm); // make any alterations necessary // (i.e. for DB check constraints, special test cases, etc.) SetSpecialTestData(mock); // return the modified object return(mock); }
///<summary> /// Update the Typed TestIssue117Tablec Entity with modified mock values. ///</summary> static public void UpdateMockInstance_Generated(TransactionManager tm, TestIssue117Tablec mock) { mock.DumbField = TestUtility.Instance.RandomBoolean(); //OneToOneRelationship TestIssue117Tablea mockTestIssue117TableaByTestIssue117TableAid = TestIssue117TableaTest.CreateMockInstance(tm); DataRepository.TestIssue117TableaProvider.Insert(tm, mockTestIssue117TableaByTestIssue117TableAid); mock.TestIssue117TableAid = mockTestIssue117TableaByTestIssue117TableAid.TestIssue117TableAid; //OneToOneRelationship TestIssue117Tableb mockTestIssue117TablebByTestIssue117TableBid = TestIssue117TablebTest.CreateMockInstance(tm); DataRepository.TestIssue117TablebProvider.Insert(tm, mockTestIssue117TablebByTestIssue117TableBid); mock.TestIssue117TableBid = mockTestIssue117TablebByTestIssue117TableBid.TestIssue117TableBid; }