Esempio n. 1
0
 public void DeleteSucceeds()
 {
     // This also verifies that Set() and Get() are working as well
     var redisCmsService = new RedisCmsService();
     redisCmsService.Set(TestKey, TestValue);
     var retrievedValue = redisCmsService.Get(TestKey);
     Assert.Equal(TestValue, retrievedValue);
     redisCmsService.Delete(TestKey);
     var deletedValue = redisCmsService.Get(TestKey);
     Assert.Null(deletedValue);
 }
Esempio n. 2
0
 public void SetSucceeds()
 {
     // This also verifies that Get() is working as well
     var redisCmsService = new RedisCmsService();
     redisCmsService.Set(TestKey, TestValue);
     var retrievedValue = redisCmsService.Get(TestKey);
     Assert.Equal(TestValue, retrievedValue);
 }