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

        return(Verifier.Verify(target)
               .AddScrubber(
                   input => input.Replace("7D3", "TheRowVersion")));
    }
Ejemplo 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));
    }
Ejemplo 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));
    }