public virtual void Setup()
		{
			mocks = new MockRepository();
			naming = new DefaultNamingService();
			source = new DefaultSourceGenerator(); // I found a more integration style of testing was better, I started off
			// mocking calls to ISourceGenerator, and that was just stupid, we want the classes and types and members.
			// and the assertions here ensure that.
			logging = new NullLogger();
			generator = new ControllerPartialsGenerator(logging, source, naming, "TargetNamespace", typeof (IServiceProvider).FullName);
		}
示例#2
0
 public virtual void Setup()
 {
     mocks  = new MockRepository();
     naming = new DefaultNamingService();
     source = new DefaultSourceGenerator();             // I found a more integration style of testing was better, I started off
     // mocking calls to ISourceGenerator, and that was just stupid, we want the classes and types and members.
     // and the assertions here ensure that.
     logging   = new NullLogger();
     generator = new ControllerPartialsGenerator(logging, source, naming, "TargetNamespace", typeof(IServiceProvider).FullName);
 }