In SignalR 1.0, the type of IRequest.Cookies
was changed from IRequestCookieCollection
to IDictionary<string, Cookie>
. As part of this change, IRequestCookieCollection
was removed.
Changing mockCookies
to reflect to the new type should fix your issue:
var mockCookies = new Mock<IDictionary<string, Cookie>>();
However, it might be painful mocking out an IDictionary, so it is probably easier to use a normal Dictionary instead:
var cookies = new Dictionary<string, Cookie>();
// ...
mockRequest.Setup(r => r.Cookies).Returns(cookies);