Open Rudomitori opened 10 months ago
Input:
new Something( formBindings: dto .Forms.Select(form => new FormBinding { Id = form.Id, Type = formBindings.First(x => x.Id == form.Id).Type, FormTypeForInitialAnswers = form.FormTypeForInitialAnswers, }) .ToList() ) { FormBindings = dto .Forms.Select(form => new FormBinding { Id = form.Id, Type = formBindings.First(x => x.Id == form.Id).Type, FormTypeForInitialAnswers = form.FormTypeForInitialAnswers, }) .ToList() };
Output:
new Something( formBindings: dto.Forms.Select(form => new FormBinding { Id = form.Id, Type = formBindings.First(x => x.Id == form.Id).Type, FormTypeForInitialAnswers = form.FormTypeForInitialAnswers, }) .ToList() ) { FormBindings = dto .Forms.Select(form => new FormBinding { Id = form.Id, Type = formBindings.First(x => x.Id == form.Id).Type, FormTypeForInitialAnswers = form.FormTypeForInitialAnswers, }) .ToList() };
Expected behavior:
Input:
Output:
Expected behavior: