public void SetUp() { _typeResolver = MockRepository.GenerateStub <IEventTypeResolver>(); _typeResolver .Stub(x => x.EventNameFor(typeof(AnEvent))) .TentativeReturn() .Return(EventName); _typeResolver .Stub(x => x.ResolveType(EventName)) .TentativeReturn() .Return(CreateEvent(EventName).GetType()); _childConverter = MockRepository.GenerateStub <IEventConverter>(); }
public void SetUp() { _typeResolver = MockRepository.GenerateStub<IEventTypeResolver>(); _typeResolver .Stub(x => x.EventNameFor(typeof(AnEvent))) .TentativeReturn() .Return(EventName); _childConverter = MockRepository.GenerateStub<IEventConverter>(); }
public EventConverterTests() { _typeResolver = MockRepository.GenerateStub <IEventTypeResolver>(); _typeResolver .Stub(x => x.EventNameFor(typeof(AnEvent))) .TentativeReturn() .Return(EventName); _childConverter = MockRepository.GenerateStub <IEventConverter>(); }