/// <summary>
 /// Creates a set of metadata document test descriptors.
 /// </summary>
 /// <param name="settings">The test descriptor settings to use.</param>
 /// <returns>List of test descriptors with metadata documents as payload.</returns>
 public static IEnumerable<MetadataWriterTestDescriptor> CreateMetadataDocumentWriterDescriptors(MetadataWriterTestDescriptor.Settings settings)
 {
     return TestModels.CreateModels().Select(m =>
         new MetadataWriterTestDescriptor(settings)
         {
             EdmVersion = EdmVersion.Latest,
             Model = m,
         });
 }
Esempio n. 2
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="other">The <see cref="MetadataWriterTestDescriptor"/> payload test descriptor to copy</param>
 public MetadataWriterTestDescriptor(MetadataWriterTestDescriptor other)
     : base(other)
 {
     this.settings   = other.settings;
     this.EdmVersion = other.EdmVersion;
 }
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="other">The <see cref="MetadataWriterTestDescriptor"/> payload test descriptor to copy</param>
 public MetadataWriterTestDescriptor(MetadataWriterTestDescriptor other)
     : base(other)
 {
     this.settings = other.settings;
     this.EdmVersion = other.EdmVersion;
 }