private static void AssertUnchangedProperties(Vacancy existingVacancy, Vacancy clone) { // Check all properties that should have the same value as the original existingVacancy.Should().BeEquivalentTo(clone, options => options .Excluding(v => v.Id) .Excluding(v => v.CreatedByUser) .Excluding(v => v.CreatedDate) .Excluding(v => v.LastUpdatedByUser) .Excluding(v => v.LastUpdatedDate) .Excluding(v => v.SourceOrigin) .Excluding(v => v.SourceType) .Excluding(v => v.SourceVacancyReference) .Excluding(v => v.Status) .Excluding(v => v.IsDeleted) .Excluding(v => v.VacancyReference) .Excluding(v => v.ApprovedDate) .Excluding(v => v.ClosedDate) .Excluding(v => v.DeletedByUser) .Excluding(v => v.DeletedDate) .Excluding(v => v.LiveDate) .Excluding(v => v.SubmittedByUser) .Excluding(v => v.SubmittedDate) .Excluding(v => v.CanClose) .Excluding(v => v.CanDelete) .Excluding(v => v.CanEdit) .Excluding(v => v.CanSubmit) .Excluding(v => v.CanApprove) .Excluding(v => v.CanRefer) .Excluding(v => v.CanMakeLive) .Excluding(v => v.CanSendForReview) .Excluding(v => v.IsDisabilityConfident) ); }