Esempio n. 1
0
    public static void Initialize()
    {
        VerifyNServiceBus.Enable();
        var nsbVersion       = FileVersionInfo.GetVersionInfo(typeof(Endpoint).Assembly.Location);
        var nsbVersionString = $"{nsbVersion.FileMajorPart}.{nsbVersion.FileMinorPart}.{nsbVersion.FileBuildPart}";

        VerifierSettings.IgnoreStackTrace();
        VerifierSettings.AddScrubber(x => x.Replace(nsbVersionString, "NsbVersion"));
        VerifierSettings.ScrubMachineName();
        VerifierSettings.AddExtraSettings(_ =>
        {
            _.Converters.Add(new LogEventPropertyConverter());
            _.Converters.Add(new LogEventConverter());
            _.Converters.Add(new ScalarValueConverter());
            _.Converters.Add(new PropertyEnricherConverter());
        });
        VerifierSettings.AddExtraDatetimeOffsetFormat("yyyy-MM-dd HH:mm:ss:ffffff Z");
    }
Esempio n. 2
0
 static Tests()
 {
     VerifierSettings.AddExtraDatetimeFormat("F");
     VerifierSettings.AddExtraDatetimeOffsetFormat("F");
 }
Esempio n. 3
0
 public static void Initialize()
 {
     VerifierSettings.AddExtraDatetimeFormat("F");
     VerifierSettings.AddExtraDatetimeOffsetFormat("F");
 }