public AdvancedServiceViewModel(ServiceReferenceGeneratorOptions options)
		{
			this.options = options;
			UpdateSettingsFromOptions();
			Title = "Service Reference Settings";
			AssembliesToReference = new ObservableCollection<CheckableAssemblyReference>();
		}
		void CreateGenerator()
		{
			options = new ServiceReferenceGeneratorOptions();
			fakeProject = MockRepository.GenerateStub<IProjectWithServiceReferences>();
			projectReferences = new List<ReferenceProjectItem>();
			fakeProject.Stub(p => p.GetReferences()).Return(projectReferences);
			fakeProxyGenerator = MockRepository.GenerateStub<IServiceReferenceProxyGenerator>();
			fakeProxyGenerator.Options = options;
			fakeReferenceMapGenerator = MockRepository.GenerateStub<IServiceReferenceMapGenerator>();
			fileGenerator = new ServiceReferenceFileGenerator(fakeProxyGenerator, fakeReferenceMapGenerator);
			fakeFileSystem = MockRepository.GenerateStub<IFileSystem>();
			
			generator = new ServiceReferenceGenerator(fakeProject, fileGenerator, fakeFileSystem);
		}
 void GenerateCommandLine(ServiceReferenceGeneratorOptions options)
 {
     AppendIfNotEmpty("/o:", options.OutputFileName);
     AppendIfNotEmpty("/n:", options.GetNamespaceMapping());
     AppendIfNotEmpty("/language:", options.Language);
     AppendIfTrue("/noConfig", options.NoAppConfig);
     AppendIfTrue("/i", options.GenerateInternalClasses);
     AppendIfTrue("/a", options.GenerateAsyncOperations);
     AppendIfTrue("/mergeConfig", options.MergeAppConfig);
     AppendIfNotEmpty("/config:", options.AppConfigFileName);
     AppendIfNotEmpty("/ct:", options.GetArrayCollectionTypeDescription());
     AppendIfNotEmpty("/ct:", options.GetDictionaryCollectionTypeDescription());
     AppendAssemblyReferences(options.Assemblies);
     AppendIfNotEmpty(options.Url);
 }
		void GenerateCommandLine(ServiceReferenceGeneratorOptions options)
		{
			AppendIfNotEmpty("/o:", options.OutputFileName);
			AppendIfNotEmpty("/n:", options.GetNamespaceMapping());
			AppendIfNotEmpty("/language:", options.Language);
			AppendIfTrue("/noConfig", options.NoAppConfig);
			AppendIfTrue("/i", options.GenerateInternalClasses);
			AppendIfTrue("/a", options.GenerateAsyncOperations);
			AppendIfTrue("/mergeConfig", options.MergeAppConfig);
			AppendIfNotEmpty("/config:", options.AppConfigFileName);
			AppendIfNotEmpty("/ct:", options.GetArrayCollectionTypeDescription());
			AppendIfNotEmpty("/ct:", options.GetDictionaryCollectionTypeDescription());
			AppendAssemblyReferences(options.Assemblies);
			AppendIfNotEmpty(options.Url);
			
			this.Arguments = argumentBuilder.ToString();
		}
 public SvcUtilCommandLine(ServiceReferenceGeneratorOptions options)
 {
     GenerateCommandLine(options);
 }
Beispiel #6
0
 public SvcUtilCommandLine(ServiceReferenceGeneratorOptions options)
 {
     GenerateCommandLine(options);
 }
Beispiel #7
0
		public SvcUtilRunner(ServiceReferenceGeneratorOptions options)
		{
			this.Options = options;
		}
		void CreateOptions()
		{
			options = new ServiceReferenceGeneratorOptions();
		}
 public SvcUtilRunner(ServiceReferenceGeneratorOptions options)
 {
     this.Options = options;
 }