Esempio n. 1
0
        public void Caching_Exists_Should_Ignore_NonExisting_Key()
        {
            var storage         = new Cactus.Blade.Caching.Caching();
            var nonexisting_key = Guid.NewGuid().ToString();

            var target = storage.Exists(nonexisting_key);

            target.Should().BeFalse();
        }
Esempio n. 2
0
        public void Caching_Exists_Should_Locate_Existing_Key()
        {
            var storage      = new Cactus.Blade.Caching.Caching();
            var expected_key = Guid.NewGuid().ToString();

            storage.Store(expected_key, Guid.NewGuid().ToString());

            var target = storage.Exists(expected_key);

            target.Should().BeTrue();
        }