public static void CountersAggregationInterval_GetsAndSetsCorrectly() { var instance = new EFCoreStorageOptions(); var value = new TimeSpan(0, 20, 0); instance.CountersAggregationInterval = value; Assert.Equal(value, instance.CountersAggregationInterval); Assert.Equal(value, Assert.IsType <TimeSpan>( instance.GetFieldValue("_countersAggregationInterval"))); }
public static void DistributedLockTimeout_GetsAndSetsCorrectly() { var instance = new EFCoreStorageOptions(); var value = new TimeSpan(0, 20, 0); instance.DistributedLockTimeout = value; Assert.Equal(value, instance.DistributedLockTimeout); Assert.Equal(value, Assert.IsType <TimeSpan>( instance.GetFieldValue("_distributedLockTimeout"))); }
public static void Schema_GetsAndSetsCorrectly() { var instance = new EFCoreStorageOptions(); var value = "test"; instance.Schema = value; Assert.Equal(value, instance.Schema); Assert.Equal(value, Assert.IsType <string>( instance.GetFieldValue("_schema"))); }
public static void SlidingInvisibilityTimeout_GetsAndSetsCorrectly() { var instance = new EFCoreStorageOptions(); var value = new TimeSpan(0, 20, 0); instance.SlidingInvisibilityTimeout = value; Assert.Equal(value, instance.SlidingInvisibilityTimeout); Assert.Equal(value, Assert.IsType <TimeSpan>( instance.GetFieldValue("_slidingInvisibilityTimeout"))); }
public static void JobExpirationCheckInterval_GetsAndSetsCorrectly() { var instance = new EFCoreStorageOptions(); var value = new TimeSpan(0, 20, 0); instance.JobExpirationCheckInterval = value; Assert.Equal(value, instance.JobExpirationCheckInterval); Assert.Equal(value, Assert.IsType <TimeSpan>( instance.GetFieldValue("_jobExpirationCheckInterval"))); }
public static void Ctor_CreatesInstance() { var instance = new EFCoreStorageOptions(); Assert.Equal(new TimeSpan(0, 10, 0), Assert.IsType <TimeSpan>( instance.GetFieldValue("_distributedLockTimeout"))); Assert.Equal(new TimeSpan(0, 0, 15), Assert.IsType <TimeSpan>( instance.GetFieldValue("_queuePollInterval"))); Assert.Equal(new TimeSpan(0, 5, 0), Assert.IsType <TimeSpan>( instance.GetFieldValue("_countersAggregationInterval"))); Assert.Equal(new TimeSpan(0, 30, 0), Assert.IsType <TimeSpan>( instance.GetFieldValue("_jobExpirationCheckInterval"))); Assert.Equal(new TimeSpan(0, 5, 0), Assert.IsType <TimeSpan>( instance.GetFieldValue("_slidingInvisibilityTimeout"))); Assert.Empty(Assert.IsType <string>(instance.GetFieldValue("_schema"))); }