public static void SetRequest(HttpWebRequest request, FileContext context, byte[] content) { Assert.IsNotNull(request); if (context.Async) { FileTestUtils.SetRequestAsync(request, context, content); } else { FileTestUtils.SetRequestSync(request, context, content); } }