public async Task ShouldValidateV4Schema() { var content = new StringContent("{ Component: 'component', Version: 'version' }", Encoding.UTF8, "application/json"); var response = new HttpResponseMessage(System.Net.HttpStatusCode.OK); response.Content = content; var handler = new FakeHttpMessageHandler(response); var client = new HttpClient(handler); client.BaseAddress = new Uri("http://localhost"); var proxy = new EPiServerServiceAPI.EpiApi(client); proxy.SchemaValidation.RaiseExceptions = false; proxy.OAuthAccessToken = "token"; var version = await proxy.Version.Get(); Assert.IsTrue(version.SchemaValidation.Value.IsValid); }