public AddServiceReferenceViewModel(IProject project)
		{
			this.project = project;
			this.serviceGenerator = new ServiceReferenceGenerator(project);
			this.assemblyReferences = serviceGenerator.GetCheckableAssemblyReferences().ToList();
			HeadLine = header;
			
			GoCommand = new RelayCommand(DiscoverServices);
			AdvancedDialogCommand = new RelayCommand(ShowAdvancedOptions);
			TwoValues = new ObservableCollection<ImageAndDescription>();
		}
        public AddServiceReferenceViewModel(IProject project)
        {
            this.project                    = project;
            this.serviceGenerator           = new ServiceReferenceGenerator(project);
            this.serviceGenerator.Complete += ServiceReferenceGenerated;
            this.assemblyReferences         = serviceGenerator.GetCheckableAssemblyReferences().ToList();
            HeadLine = header;

            GoCommand             = new RelayCommand(DiscoverServices);
            AdvancedDialogCommand = new RelayCommand(ShowAdvancedOptions);
            TwoValues             = new ObservableCollection <ImageAndDescription>();
        }
		void CreateGenerator()
		{
			metadata = new MetadataSet();
			
			fakeProject = MockRepository.GenerateStub<IProjectWithServiceReferences>();
			fakeProxyGenerator = MockRepository.GenerateStub<IServiceReferenceProxyGenerator>();
			fakeReferenceMapGenerator = MockRepository.GenerateStub<IServiceReferenceMapGenerator>();
			fileGenerator = new ServiceReferenceFileGenerator(fakeProxyGenerator, fakeReferenceMapGenerator);
			fakeFileSystem = MockRepository.GenerateStub<IFileSystem>();
			
			generator = new ServiceReferenceGenerator(fakeProject, fileGenerator, fakeFileSystem);
		}
		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);
		}
		public void AddServiceReference()
		{
			var serviceGenerator = new ServiceReferenceGenerator(project);
			serviceGenerator.Namespace = defaultNameSpace;
			serviceGenerator.AddServiceReference(serviceMetadata);
			new RefreshProjectBrowser().Run();
		}