void AddCodeInterfaces()
 {
     foreach (IReturnType baseType in c.BaseTypes)
     {
         CodeInterface codeInterface = CodeInterface.CreateFromBaseType(projectContent, baseType);
         if (codeInterface != null)
         {
             AddCodeElement(codeInterface);
         }
     }
 }
 void CreateInterface(string code, string fileName = @"c:\projects\MyProject\interface.cs")
 {
     CreateCodeModel();
     AddCodeFile(fileName, code);
     interfaceTypeDefinition = assemblyModel.TopLevelTypeDefinitions.First().Resolve();
     codeInterface = new CodeInterface(codeModelContext, interfaceTypeDefinition);
 }
		void CreateInterface()
		{
			IClass c = helper.AddInterfaceToProjectContent("MyInterface");
			codeInterface = new CodeInterface(helper.ProjectContent, c);
		}
		void CreateInterface(string code)
		{
			AddCodeFile("interface.cs", code);
			ITypeDefinition typeDefinition = assemblyModel.TopLevelTypeDefinitions.First().Resolve();
			codeInterface = new CodeInterface(codeModelContext, typeDefinition);
		}