Exemplo n.º 1
0
 public static void Initialize()
 {
     VerifyHttp.Enable();
     VerifierSettings.AddScrubber(x => x.RemoveLineSuffix("boundary="));
     VerifierSettings.ModifySerialization(settings =>
     {
         settings.IgnoreMember <ExecutionResult>(result => result.Perf);
         settings.IgnoreMember <ExecutionResult>(result => result.Document);
         settings.IgnoreMember <ExecutionResult>(result => result.Operation);
         settings.AddExtraSettings(serializerSettings =>
         {
             serializerSettings.Converters.Add(new AttachmentConverter());
             serializerSettings.Converters.Add(new QueryResultConverter());
         });
     });
 }
 public static void Initialize()
 {
     VerifyHttp.Enable();
     VerifierSettings.ModifySerialization(settings =>
     {
         settings.IgnoreMember <ExecutionResult>(result => result.Perf);
         settings.IgnoreMember <ExecutionResult>(result => result.Document);
         settings.IgnoreMember <ExecutionResult>(result => result.Operation);
         settings.IgnoreMember("SourceLocation");
         settings.AddExtraSettings(serializerSettings =>
         {
             serializerSettings.Converters.Add(new OutgoingConverter());
             serializerSettings.Converters.Add(new AttachmentStreamConverter());
             serializerSettings.Converters.Add(new OutgoingAttachmentsConverter());
         });
     });
 }
Exemplo n.º 3
0
    public static void Init()
    {
        VerifyHttp.Enable();
        VerifierSettings.ModifySerialization(
            settings =>
        {
            settings.AddExtraSettings(x =>
            {
                x.Converters.Add(new ResultConverter());
                x.Converters.Add(new TimestampConverter());
            });
#if NET5_0 || NET6_0_OR_GREATER
            settings.IgnoreMember <HttpRequestException>(x => x.StatusCode);
#endif
            settings.IgnoreMember <Result>(x => x.File);
            settings.IgnoreMembers(
                "StackTrace",
                "Content-Length",
                "TrailingHeaders",
                "X-Amzn-Trace-Id",
                "Set-Cookie",
                "Report-To",
                "Connection",
                "Server-Timing",
                "Content-Type",
                "NEL",
                "Accept-Ranges",
                "Age",
                "Server",
                "X-Client-IP",
                "Strict-Transport-Security",
                "X-Cache-Status",
                "X-Cache",
                "origin");
        });
    }