public async Task RemoveAsync_WithRegionsTryGetValue_ReturnFalse()
 {
     await TestCaching.RemoveAsync_WithRegionsTryGetValue_ReturnFalse(CreateCache <int, string>());
 }
 public async Task TryGetAsync_AfterExpirationTimeSpan_ReturnsFalse()
 {
     await TestCaching.TryGetAsync_AfterExpirationTimeSpan_ReturnsFalse(CreateCache <int, string>());
 }
 public void TryGet_AddOrUpdateTwoValueWithRegions_ReturnsLastValue()
 {
     TestCaching.TryGet_AddOrUpdateTwoValueWithRegions_ReturnsLastValue(CreateCache <int, string>());
 }
 public void Clear_TryGetValueWithRegions_ReturnFalse()
 {
     TestCaching.Clear_TryGetValueWithRegions_ReturnFalse(CreateCache <int, string>());
 }
 public async Task GetOrAdd_TwoTimesCalledWithNoTimeSpanExpire_ResultAlwaysTheSameAndGetValueFuncCalledOneTime()
 {
     await TestCaching.GetOrAdd_TwoTimesCalledWithNoTimeSpanExpire_ResultAlwaysTheSameAndGetValueFuncCalledOneTime(
         CreateCache <int, string>());
 }
 public void TryGet_KeyExistsWithRegion_ReturnsTrueAndValue()
 {
     TestCaching.TryGet_KeyExistsWithRegion_ReturnsTrueAndValue(CreateCache <int, string>());
 }
 public void GetValue_KeyNotExistsWithRegions_ReturnNull()
 {
     TestCaching.GetValue_KeyNotExistsWithRegions_ReturnNull(CreateCache <int, string>());
 }
 public async Task GetOrAddAsync_TwoTimesCalledWithRegions_ResultAlwaysTheSameAndGetValueFuncCalledTwoTime()
 {
     await TestCaching.GetOrAddAsync_TwoTimesCalledWithRegions_ResultAlwaysTheSameAndGetValueFuncCalledTwoTime(
         CreateCache <int, string>());
 }
 public void GetValue_KeyNotExistsWithRegions_ThrowsException()
 {
     TestCaching.GetValue_KeyNotExistsWithRegions_ThrowsException(CreateCache <int, string>());
 }
Exemplo n.º 10
0
 public async Task GetValueAsync_KeyNotExistsWithRegions_ThrowsException()
 {
     await TestCaching.GetValueAsync_KeyNotExistsWithRegions_ThrowsException(CreateCache <int, string>());
 }
Exemplo n.º 11
0
 public async Task GetValueAsync_GetExistingWithRegion_ReturnsValue()
 {
     await TestCaching.GetValueAsync_GetExistingWithRegion_ReturnsValue(CreateCache <int, string>());
 }
Exemplo n.º 12
0
 public void TryGet_KeyNotExistsWithRegion_ReturnFalse()
 {
     TestCaching.TryGet_KeyNotExistsWithRegion_ReturnFalse(CreateCache <int, string>());
 }
Exemplo n.º 13
0
 public void GetValue_GetExistingWithRegion_ReturnsValue()
 {
     TestCaching.GetValue_GetExistingWithRegion_ReturnsValue(CreateCache <int, string>());
 }
Exemplo n.º 14
0
 public async Task TryGetAsync_KeyNotExistsWithRegion_ReturnFalse()
 {
     await TestCaching.TryGetAsync_KeyNotExistsWithRegion_ReturnFalse(CreateCache <int, string>());
 }
Exemplo n.º 15
0
 public async Task GetValueAsync_KeyNotExistsWithRegions_ReturnNull()
 {
     await TestCaching.GetValueAsync_KeyNotExistsWithRegions_ReturnNull(CreateCache <int, string>());
 }
Exemplo n.º 16
0
 public void GetOrAdd_TwoTimesCalledWithRegions_ResultAlwaysTheSameAndGetValueFuncCalledTwoTime()
 {
     TestCaching.GetOrAdd_TwoTimesCalledWithRegions_ResultAlwaysTheSameAndGetValueFuncCalledTwoTime(
         CreateCache <int, string>());
 }
Exemplo n.º 17
0
 public void GetValue_KeyNotExists_ReturnDefaultValue()
 {
     TestCaching.GetValue_KeyNotExists_ReturnDefaultValue(CreateCache <int, string>());
 }
Exemplo n.º 18
0
 public void GetOrAdd_TwoTimesCalledWithNeverExpire_ResultAlwaysTheSameAndGetValueFuncCalledOneTime()
 {
     TestCaching.GetOrAdd_TwoTimesCalledWithNeverExpire_ResultAlwaysTheSameAndGetValueFuncCalledOneTime(
         CreateCache <int, string>());
 }
Exemplo n.º 19
0
 public void GetValue_KeyNotExists_ReturnNewValueAndStoreToCache()
 {
     TestCaching.GetValue_KeyNotExists_ReturnNewValueAndStoreToCache(CreateCache <int, string>());
 }
Exemplo n.º 20
0
 GetOrAddAsync_TwoTimesCalledWithNoDateTimeExpire_ResultAlwaysTheSameAndGetValueFuncCalledOneTime()
 {
     await TestCaching
     .GetOrAddAsync_TwoTimesCalledWithNoDateTimeExpire_ResultAlwaysTheSameAndGetValueFuncCalledOneTime(
         CreateCache <int, string>());
 }
Exemplo n.º 21
0
 public async Task GetValueAsync_KeyNotExists_ReturnNewValueAndStoreToCache()
 {
     await TestCaching.GetValueAsync_KeyNotExists_ReturnNewValueAndStoreToCache(CreateCache <int, string>());
 }
Exemplo n.º 22
0
 public async Task TryGetAsync_KeyExistsWithRegion_ReturnsTrueAndValue()
 {
     await TestCaching.TryGetAsync_KeyExistsWithRegion_ReturnsTrueAndValue(CreateCache <int, string>());
 }
Exemplo n.º 23
0
 public void GetValue_KeyExists_ReturnOldValue()
 {
     TestCaching.GetValue_KeyExists_ReturnOldValue(CreateCache <int, string>());
 }
Exemplo n.º 24
0
 public async Task TryGetAsync_AddOrUpdateTwoValueWithRegions_ReturnsLastValue()
 {
     await TestCaching.TryGetAsync_AddOrUpdateTwoValueWithRegions_ReturnsLastValue(CreateCache <int, string>());
 }
Exemplo n.º 25
0
 public async Task GetValueAsync_KeyExists_ReturnOldValue()
 {
     await TestCaching.GetValueAsync_KeyExists_ReturnOldValue(CreateCache <int, string>());
 }
Exemplo n.º 26
0
 public async Task ClearAsync_TryGetValue_ReturnFalse()
 {
     await TestCaching.ClearAsync_TryGetValue_ReturnFalse(CreateCache <int, string>());
 }
Exemplo n.º 27
0
 public void Remove_WithRegionsTryGetValue_ReturnFalse()
 {
     TestCaching.Remove_WithRegionsTryGetValue_ReturnFalse(CreateCache <int, string>());
 }