public void Should_return_false_when_parameters_are_missing_or_invalid(string key)
        {
            // Given
            var userCacheService = new UserCacheService();

            // When
            var isValid = userCacheService.Validate(key);

            // Then
            isValid.ShouldBe(false);
        }
        public void Should_return_true_when_key_is_known()
        {
            // Given
            var user = new User() { Id = MakeFake.Guid };
            var userCacheService = new UserCacheService();
            var key = userCacheService.Add(user);

            // When
            var isValid = userCacheService.Validate(key);

            // Then
            isValid.ShouldBe(true);
        }
        public void Should_return_false_when_key_is_unknown()
        {
            // Given
            var user = new User() { Id = MakeFake.Guid };
            var unknownKey = MakeFake.Guid;
            var userCacheService = new UserCacheService();
            userCacheService.Add(user);

            // When
            var isValid = userCacheService.Validate(unknownKey);

            // Then
            isValid.ShouldBe(false);
        }