sdk/dotnet/test/Datasync.Common.Test/AssertEx.cs
/// <summary>
/// Asserts if the system properties are set.
/// </summary>
/// <param name="entity">The entity that is being checked</param>
Asserts if the system properties are set.
Asserts if the system properties are set .
public static void SystemPropertiesSet(ITableData entity, DateTimeOffset? startTime = null, int interval = 3000)
        {
            if (startTime.HasValue)
            {
                IsBetween(startTime.Value, DateTimeOffset.Now, entity.UpdatedAt);
            }
            else
            {
                CloseTo(DateTimeOffset.Now, entity.UpdatedAt, interval);
            }
            Assert.NotEmpty(entity.Version);
        }
public static void SystemPropertiesSet ( ITableData entity , DateTimeOffset ? startTime = null , int interval = 3000 ) { if ( startTime . HasValue ) { IsBetween ( startTime . Value , DateTimeOffset . Now , entity . UpdatedAt ) ; } else { CloseTo ( DateTimeOffset . Now , entity . UpdatedAt , interval ) ; } Assert . NotEmpty ( entity . Version ) ; }
Asserts if the system properties are set.
Asserts if the system properties are set .
entity
ITableData
The entity that is being checked
The entity that is being checked
startTime
DateTimeOffset?
interval
int