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); }
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); }