Esempio n. 1
0
    public Task AfterSerializationFluent()
    {
        var target = new ToBeScrubbed
        {
            RowVersion = "7D3"
        };

        return(Verifier.Verify(target)
               .AddScrubber(
                   input => input.Replace("7D3", "TheRowVersion")));
    }
Esempio n. 2
0
    public Task ScrubberAppliedAfterJsonSerialization()
    {
        var target = new ToBeScrubbed
        {
            RowVersion = "0x00000000000007D3"
        };

        var settings = new VerifySettings();

        settings.AddScrubber(
            s => s.Replace("0x00000000000007D3", "TheRowVersion"));
        return(Verifier.Verify(target, settings));
    }
Esempio n. 3
0
    public Task AfterSerialization()
    {
        var target = new ToBeScrubbed
        {
            RowVersion = "7D3"
        };

        var settings = new VerifySettings();

        settings.AddScrubber(
            input => input.Replace("7D3", "TheRowVersion"));
        return(Verifier.Verify(target, settings));
    }