Beispiel #1
0
        public void GetValue_ExistInStore_GetValueSuccessfully()
        {
            // Arrange
            _inMemoryStore.InMemoryStore.TryAdd("existing-key", new HashedValue <object> {
                Value = "existing-value", Hash = "existing-hash"
            });

            // Act
            var value = _inMemoryStore.GetValue <string>("existing-key");

            // Assert
            value.Should().NotBeNull();
            value.Value.Should().Be("existing-value");
            value.Hash.Should().Be("existing-hash");
        }