///<summary>
        ///  Update the Typed StateProvince Entity with modified mock values.
        ///</summary>
        static public void UpdateMockInstance(TransactionManager tm, StateProvince mock)
        {
            StateProvinceTest.UpdateMockInstance_Generated(tm, mock);

            // make any alterations necessary
            // (i.e. for DB check constraints, special test cases, etc.)
            SetSpecialTestData(mock);
        }
        ///<summary>
        ///  Returns a Typed StateProvince Entity with mock values.
        ///</summary>
        static public StateProvince CreateMockInstance(TransactionManager tm)
        {
            // get the default mock instance
            StateProvince mock = StateProvinceTest.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 SalesTaxRate Entity with modified mock values.
        ///</summary>
        static public void UpdateMockInstance_Generated(TransactionManager tm, SalesTaxRate mock)
        {
            mock.TaxType      = TestUtility.Instance.RandomByte();
            mock.TaxRate      = TestUtility.Instance.RandomShort();
            mock.Name         = TestUtility.Instance.RandomString(24, false);;
            mock.ModifiedDate = TestUtility.Instance.RandomDateTime();

            //OneToOneRelationship
            StateProvince mockStateProvinceByStateProvinceId = StateProvinceTest.CreateMockInstance(tm);

            DataRepository.StateProvinceProvider.Insert(tm, mockStateProvinceByStateProvinceId);
            mock.StateProvinceId = mockStateProvinceByStateProvinceId.StateProvinceId;
        }
        ///<summary>
        ///  Returns a Typed SalesTaxRate Entity with mock values.
        ///</summary>
        static public SalesTaxRate CreateMockInstance_Generated(TransactionManager tm)
        {
            SalesTaxRate mock = new SalesTaxRate();

            mock.TaxType      = TestUtility.Instance.RandomByte();
            mock.TaxRate      = TestUtility.Instance.RandomShort();
            mock.Name         = TestUtility.Instance.RandomString(24, false);;
            mock.ModifiedDate = TestUtility.Instance.RandomDateTime();

            //OneToOneRelationship
            StateProvince mockStateProvinceByStateProvinceId = StateProvinceTest.CreateMockInstance(tm);

            DataRepository.StateProvinceProvider.Insert(tm, mockStateProvinceByStateProvinceId);
            mock.StateProvinceId = mockStateProvinceByStateProvinceId.StateProvinceId;

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

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


            return((SalesTaxRate)mock);
        }