public virtual void Setup() { _mocks = new MockRepository(); _naming = new DefaultNamingService(); _source = new DefaultSourceGenerator(); _logging = new NullLogger(); _generator = new ActionMapGenerator(_logging, _source, _naming, "TargetNamespace", typeof(IServiceProvider).FullName); }
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 ActionMapGenerator(_logging, _source, _naming, "TargetNamespace", typeof(IServiceProvider).FullName); }