Example #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");
        }
Example #2
0
        public SingleThreadedTests()
        {
            srsly = new RedisJsonSerializer();

            this.items = new RedisSessionStateItemCollection(
                new Dictionary <string, string> {
                { "a", srsly.SerializeOne("x") },
                { "b", srsly.SerializeOne("y") },
                { "c", srsly.SerializeOne("z") }
            },
                "fakeCollection");
        }
 public MultiThreadedTests()
 {
     this.items = new RedisSessionStateItemCollection();
     this.srsly = new RedisJsonSerializer();
 }
 private static void ClearRedisItems(RedisSessionStateItemCollection items, int size)
 {
     items.Clear();
 }
 public void OnBeforeTestExecute()
 {
     this.items = new RedisSessionStateItemCollection();
     this.srsly = new RedisJSONSerializer();
 }
 private static void ClearRedisItems(RedisSessionStateItemCollection items, int size)
 {
     items.Clear();
 }