Пример #1
0
        ///<summary>
        ///  Update the Typed Staff Entity with modified mock values.
        ///</summary>
        static public void UpdateMockInstance(TransactionManager tm, Staff mock)
        {
            StaffTest.UpdateMockInstance_Generated(tm, mock);

            // make any alterations necessary
            // (i.e. for DB check constraints, special test cases, etc.)
            SetSpecialTestData(mock);
        }
Пример #2
0
        ///<summary>
        ///  Returns a Typed Staff Entity with mock values.
        ///</summary>
        static public Staff CreateMockInstance(TransactionManager tm)
        {
            // get the default mock instance
            Staff mock = StaffTest.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);
        }