public async Task CanGetAllWithAllData() { TestDataUtil.AddJobWithAllData(); var actualJobs = await _jobRepository.GetAllWithAllDataAsync(); actualJobs.Should().BeEquivalentTo( TestDataUtil.GetAll<Job>(), config => config .Excluding(o => o.Id) .Excluding(o => o.Bonuses) .Excluding(info => info.SelectedMemberPath.EndsWith(".Stat")) .Excluding(info => info.SelectedMemberPath.EndsWith(".Skill")) .IgnoringCyclicReferences()); }