public CollectionWriterTestDescriptor(Settings settings, string collectionName, ItemDescription[] itemDescriptions, IEdmModel model) { this.TestDescriptorSettings = settings; this.collectionName = collectionName; this.payloadItems = itemDescriptions.Select(i => i.Item).ToArray(); bool errorOnly; this.invocations = CreateInvocations(payloadItems, out errorOnly); this.expectedResultCallback = CollectionWriterUtils.CreateExpectedResultCallback(collectionName, itemDescriptions, errorOnly, this.TestDescriptorSettings.ExpectedResultSettings); this.Model = model; }