public void the_seed_cache_is_case_sensitive()
        {
            var factory = new StubDecrypterFactory();

            Assert.NotNull(factory.Create("sessionId"));
            Assert.Equal(1, factory.GetSeedForSessionCount);
            Assert.NotNull(factory.Create("SessionId"));
            Assert.Equal(2, factory.GetSeedForSessionCount);
        }
        public void seeds_for_previously_resolved_sessions_are_cached()
        {
            var factory = new StubDecrypterFactory();

            Assert.NotNull(factory.Create("sessionId"));
            Assert.Equal(1, factory.GetSeedForSessionCount);
            Assert.NotNull(factory.Create("sessionId"));
            Assert.Equal(1, factory.GetSeedForSessionCount);
        }
        public void the_default_decrypter_is_created_with_the_default_seed()
        {
            var factory = new StubDecrypterFactory();

            Assert.NotNull(factory.Create());
            Assert.Equal(DecrypterFactoryBase.DefaultSeed, factory.CreateWithSeed_Seed);
        }
        public void seed_returned_by_get_seed_for_session_is_used_to_create_the_decrypter()
        {
            var factory = new StubDecrypterFactory();

            Assert.NotNull(factory.Create("sessionId"));
            Assert.Equal(7, factory.CreateWithSeed_Seed);
        }
        public void can_create_default_decrypter()
        {
            var factory = new StubDecrypterFactory();

            Assert.NotNull(factory.Create());
        }