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 ViewMapGenerator(_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 ViewMapGenerator(logging, source, naming, "TargetNamespace", typeof (IServiceProvider).FullName); }