From 9bf69821681693d9c3cbe564ff51528a14bada59 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Tue, 24 Jun 2014 16:36:36 -0700 Subject: [PATCH] Reacting to HttpAbstractions changes --- .../AntiXsrf/AntiForgeryTokenStoreTest.cs | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/AntiXsrf/AntiForgeryTokenStoreTest.cs b/test/Microsoft.AspNet.Mvc.Core.Test/AntiXsrf/AntiForgeryTokenStoreTest.cs index c0920f3e87..2ed2fd786d 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/AntiXsrf/AntiForgeryTokenStoreTest.cs +++ b/test/Microsoft.AspNet.Mvc.Core.Test/AntiXsrf/AntiForgeryTokenStoreTest.cs @@ -311,11 +311,27 @@ namespace Microsoft.AspNet.Mvc.Core.Test private class MockCookieCollection : IReadableStringCollection { - private Dictionary dictionary; + private Dictionary _dictionary; + + public int Count + { + get + { + return _dictionary.Count; + } + } + + public ICollection Keys + { + get + { + return _dictionary.Keys; + } + } public MockCookieCollection(Dictionary dictionary) { - this.dictionary = dictionary; + _dictionary = dictionary; } public static MockCookieCollection GetDummyInstance(string key, string value) @@ -333,9 +349,14 @@ namespace Microsoft.AspNet.Mvc.Core.Test throw new NotImplementedException(); } + public bool ContainsKey(string key) + { + return _dictionary.ContainsKey(key); + } + public string this[string key] { - get { return this.dictionary[key]; } + get { return _dictionary[key]; } } public IEnumerator> GetEnumerator()