protected override void EstablishContext() { httpRequestProvider = mocks.Stub<IHttpRequestProvider>(); base64Wimp = Convert.ToBase64String(Encoding.UTF8.GetBytes(wimp)); Expect.Call(httpRequestProvider.GetValue("wctx")).Return(string.Format(sampleWctxValue, base64Wimp)); wctxWimpProvider = new Base64WctxWimpProvider(httpRequestProvider); }