コード例 #1
0
        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>();
        }
コード例 #2
0
        public void SetUp()
        {
            _typeResolver = MockRepository.GenerateStub<IEventTypeResolver>();
            _typeResolver
                .Stub(x => x.EventNameFor(typeof(AnEvent)))
                .TentativeReturn()
                .Return(EventName);

            _childConverter = MockRepository.GenerateStub<IEventConverter>();
        }
コード例 #3
0
ファイル: EventConverterTests.cs プロジェクト: zonaid/ncqrs
        public EventConverterTests()
        {
            _typeResolver = MockRepository.GenerateStub <IEventTypeResolver>();
            _typeResolver
            .Stub(x => x.EventNameFor(typeof(AnEvent)))
            .TentativeReturn()
            .Return(EventName);

            _childConverter = MockRepository.GenerateStub <IEventConverter>();
        }