public void SetupBeforeEachTest() { var messageHandlerTypesIndexFactory = A.Fake<IMessageHandlerTypesIndexFactory>(); var messageHandlerTypesIndex = A.Fake<IMessageHandlerTypesIndex>(); A.CallTo(() => messageHandlerTypesIndexFactory.Create(A<Type[]>._)).Returns(messageHandlerTypesIndex); A.CallTo(() => messageHandlerTypesIndex.GetAllMessageTypes()).Returns(new[] { typeof(object) }); this.componentUnderTest = new InMemoryMessageSubscriptionFactory(messageHandlerTypesIndexFactory, A.Fake<IMessageHandlerInvokerFactory>(), A.Fake<ITaskLibrary>(), A.Fake<IConfiguration>(), A.Fake<IMessageServiceExchange>()); }
public void SetupBeforeEachTest() { this.componentUnderTest = new InMemoryMessageSubscriptionFactory(A.Fake<IMessageHandlerTypesIndexFactory>(), A.Fake<IMessageHandlerInvokerFactory>(), A.Fake<ITaskLibrary>(), A.Fake<IConfiguration>(), A.Fake<IMessageServiceExchange>()); }