private void CompareWorkTimes(WorkTime w1, WorkTime w2) { w1.Should().BeEquivalentTo(w2, opt => { return(opt.Excluding(w => w.FromSnapshot).Excluding(w => w.PendingEvents).Excluding(w => w.AggregateVersion) .Excluding(t => t.MouseActionEvents).Excluding(t => t.KeyboardActionEvents)); }); }