static public CreateMockInstance_Generated ( TransactionManager tm ) : |
||
tm | TransactionManager | |
return |
static public TimestampPk CreateMockInstance_Generated(TransactionManager tm)
{
TimestampPk mock = new TimestampPk();
mock.SomeText = TestUtility.Instance.RandomString(24, false);;
// create a temporary collection and add the item to it
TList<TimestampPk> tempMockCollection = new TList<TimestampPk>();
tempMockCollection.Add(mock);
tempMockCollection.Remove(mock);
return (TimestampPk)mock;
}
///<summary> /// Returns a Typed TimestampPk Entity with mock values. ///</summary> static public TimestampPk CreateMockInstance(TransactionManager tm) { // get the default mock instance TimestampPk mock = TimestampPkTest.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); }