Exemplo n.º 1
0
        public void OnBeforeTestExecute()
        {
            srsly = new RedisJSONSerializer();

            this.items = new RedisSessionStateItemCollection(
                new Dictionary <string, byte[]> {
                { "a", Encoding.UTF8.GetBytes(srsly.SerializeOne("a", "x")) },
                { "b", Encoding.UTF8.GetBytes(srsly.SerializeOne("b", "y")) },
                { "c", Encoding.UTF8.GetBytes(srsly.SerializeOne("c", "z")) }
            },
                "fakeCollection");
        }
Exemplo n.º 2
0
 public void OnBeforeTestExecute()
 {
     this.srsly = new RedisJSONSerializer();
 }