Esempio n. 1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        private static ITravStep WhereTimestamp <TFrom, TType, TTo>(string pCmd, string pPropDb)
            where TFrom : FabObject where TTo : FabElement
        {
            var w = new TravStepWhere <TFrom, TType, TTo>(pCmd, pPropDb);

            w.UpdateValue = (val => (TType)(object)FabMetaTime.GetTicks((long)(object)val));
            return(w);
        }
Esempio n. 2
0
        /*--------------------------------------------------------------------------------------------*/
        public static ITravStep VertexEntryWhereTimestamp <TFrom, TType, TTo>(string pCmd,
                                                                              string pPropDb) where TFrom : FabTravTypedRoot where TTo : FabVertex
        {
            var ew = new TravStepEntryWhere <TFrom, TType, TTo>(pCmd, pPropDb);

            ew.UpdateValue = (val => (TType)(object)FabMetaTime.GetTicks((long)(object)val));
            return(ew);
        }
Esempio n. 3
0
        /*--------------------------------------------------------------------------------------------*/
        private void CheckWhereTimestampValue(Func <long, long> pUpdateValue)
        {
            const long fromVal = 1236513461346;
            long       toVal   = FabMetaTime.GetTicks(fromVal);

            Assert.NotNull(pUpdateValue, "UpdateValue must be customized.");
            long result = pUpdateValue(fromVal);

            Assert.AreEqual(toVal, result, "Incorrect UpdateValue result.");
        }