public void SetUp()
 {
     Configuration = CodeGeneratorConfiguration.Create().MediaTypes;
     Candidate     = Type = new CodeTypeDeclaration();
     generator     = new DocumentTypeInfoGenerator(Configuration);
     documentType  = new DocumentType {
         Info = { Alias = "aClass" }
     };
     info = (DocumentTypeInfo)documentType.Info;
 }
Example #2
0
 public void SetUp()
 {
     Configuration = CodeGeneratorConfiguration.Create().MediaTypes;
     attribute     = new CodeAttributeDeclaration("DocumentType");
     generator     = new DocumentTypeInfoGenerator(Configuration);
     documentType  = new DocumentType
     {
         Info = info = new DocumentTypeInfo {
             Alias = "aClass"
         }
     };
 }