Beispiel #1
0
        public void PostInformationAndGetInformationWithDifferentKeys()
        {
            var cache = new CachedStorage();

            cache.SetValueById("1", null);
            object result;

            cache.TryGetValueById("2", out result);
            result.Should().BeNull();
        }
Beispiel #2
0
        public void PostNullIfnformationToCacheStorage()
        {
            var cache = new CachedStorage();

            cache.SetValueById("1", null);
            object result;

            cache.TryGetValueById("1", out result);
            result.Should().BeNull();
        }
Beispiel #3
0
        public void PostInformationWithNullKeyToCacheStorage()
        {
            var cache = new CachedStorage();

            cache.SetValueById(null, null);
            object result;

            cache.TryGetValueById(null, out result);
            result.Should().BeNull();
        }
Beispiel #4
0
        public void PostIfnformationToCacheStorage()
        {
            var    cache = new CachedStorage();
            object inf   = new Byte[1, 3, 4, 5, 6];

            cache.SetValueById("1", inf);
            object result;

            cache.TryGetValueById("1", out result);
            result.Should().Be(inf);
        }