コード例 #1
0
        public void ShouldRead()
        {
            //given
            var store = new LocalStore();

            //when
            var result = store.Read("key");
            Assert.AreEqual(null, result);
        }
コード例 #2
0
        public void ShouldRead()
        {
            //given
            var store = new LocalStore();

            //when
            var result = store.Read("key");

            Assert.AreEqual(null, result);
        }
コード例 #3
0
        public void ShouldStore()
        {
            //given
            const string key = "thekey";
            var store = new LocalStore();
            const string channel = "dummy channel string";

            //when
            store.Save(key, channel);

            //then
            var result = store.Read(key);
            Assert.AreEqual(channel, result);
        }
コード例 #4
0
        public void ShouldStore()
        {
            //given
            const string key     = "thekey";
            var          store   = new LocalStore();
            const string channel = "dummy channel string";

            //when
            store.Save(key, channel);

            //then
            var result = store.Read(key);

            Assert.AreEqual(channel, result);
        }