protected void GivenReferencedTypes(IEnumerable<Type> types)
 {
     TheTypeNavigator = new TypeNavigator(types);
     TheViewExplorer = MockRepository.GenerateMock<IViewExplorer>();
     TheViewExplorer.Expect(x => x.GetTypeNavigator()).Return(TheTypeNavigator);
     TheViewExplorer.Expect(x => x.GetLocalVariableChunks()).Return(null);
     TheViewExplorer.Expect(x => x.GetViewDataVariableChunks()).Return(null);
 }
Example #2
0
 public TypeNavigator GetTypeNavigator()
 {
     if (_typeNavigator != null)
     {
         return(_typeNavigator);
     }
     return(_typeNavigator = new TypeNavigator(_projectExplorer.GetProjectReferencedTypes()));
 }
Example #3
0
 public CompletionBuilder(IViewExplorer viewExplorer)
 {
     if (viewExplorer == null) throw new ArgumentNullException("viewExplorer");
     _viewExplorer = viewExplorer;
     _typeNavigator = viewExplorer.GetTypeNavigator();
 }