Provides tests for the and TestIssue117Tableb objects (entity, collection and repository).
        ///<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);
        }
Exemplo n.º 2
0
        ///<summary>
        ///  Update the Typed TestIssue117Tableb Entity with modified mock values.
        ///</summary>
        static public void UpdateMockInstance(TransactionManager tm, TestIssue117Tableb mock)
        {
            TestIssue117TablebTest.UpdateMockInstance_Generated(tm, mock);

            // make any alterations necessary
            // (i.e. for DB check constraints, special test cases, etc.)
            SetSpecialTestData(mock);
        }
Exemplo n.º 3
0
        ///<summary>
        ///  Returns a Typed TestIssue117Tableb Entity with mock values.
        ///</summary>
        static public TestIssue117Tableb CreateMockInstance(TransactionManager tm)
        {
            // get the default mock instance
            TestIssue117Tableb mock = TestIssue117TablebTest.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;
        }