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 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 <IServiceReferenceFileSystem>();
            fakeActiveTextEditors = MockRepository.GenerateStub <IActiveTextEditors>();

            generator = new ServiceReferenceGenerator(fakeProject, fileGenerator, fakeFileSystem, fakeActiveTextEditors);
        }
 void SetProjectRootNamespace(string rootNamespace)
 {
     fakeProject.Stub(p => p.RootNamespace).Return(rootNamespace);
 }