public SessionIdentificationDataProviderFixture() { _parameterName = "TheParamName"; _hmacProvider = A.Fake<IHmacProvider>(); _sessionIdentificationDataProvider = new SessionIdentificationDataProvider(_hmacProvider); _hmacString = "01HMAC98"; _encryptedSessionIdString = "s%26%c2%a7%c2%a7ionId"; _validRequest = new Request("GET", string.Format("http://www.google.be?{0}={1}{2}", _parameterName, _hmacString, _encryptedSessionIdString)); _expectedResult = new SessionIdentificationData {SessionId = "s&§§ionId", Hmac = new byte[] {211, 81, 204, 0, 47, 124}}; A.CallTo(() => _hmacProvider.HmacLength).Returns(6); }
public SessionIdentificationDataProviderFixture() { _parameterName = "TheParamName"; _hmacProvider = A.Fake <IHmacProvider>(); _sessionIdentificationDataProvider = new SessionIdentificationDataProvider(_hmacProvider); _hmacString = "01HMAC98"; _encryptedSessionIdString = "s%26%c2%a7%c2%a7ionId"; _validRequest = new Request("GET", string.Format("http://www.google.be?{0}={1}{2}", _parameterName, _hmacString, _encryptedSessionIdString)); _expectedResult = new SessionIdentificationData { SessionId = "s&§§ionId", Hmac = new byte[] { 211, 81, 204, 0, 47, 124 } }; A.CallTo(() => _hmacProvider.HmacLength).Returns(6); }