InMemoryTestFixture published messages

310 views
Skip to first unread message

Дмитрий Ушенко

unread,
May 4, 2017, 6:37:51 AM5/4/17
to masstransit-discuss
Hello,
how can i get messages, which were published from within the consumer? I've checked every Published, Sent, Consumed properties on every harnesses but don't see any published messages. Only the incoming message.

Chris Patterson

unread,
May 4, 2017, 11:37:35 AM5/4/17
to masstrans...@googlegroups.com

On Thu, May 4, 2017 at 3:37 AM, Дмитрий Ушенко <ushenko...@gmail.com> wrote:
Hello,
how can i get messages, which were published from within the consumer? I've checked every Published, Sent, Consumed properties on every harnesses but don't see any published messages. Only the incoming message.

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To post to this group, send email to masstransit-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/b5734ae3-3026-442f-926f-7fb99e35f785%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Дмитрий Ушенко

unread,
May 4, 2017, 11:43:29 AM5/4/17
to masstransit-discuss
I'm using InMemoryTestFixture and it's properties InMemoryTestHarness, AsyncTestHarness. Should I avoid using InMemoryTestFixture?

четверг, 4 мая 2017 г., 18:37:35 UTC+3 пользователь Chris Patterson написал:
On Thu, May 4, 2017 at 3:37 AM, Дмитрий Ушенко <ushenko...@gmail.com> wrote:
Hello,
how can i get messages, which were published from within the consumer? I've checked every Published, Sent, Consumed properties on every harnesses but don't see any published messages. Only the incoming message.

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.

Chris Patterson

unread,
May 4, 2017, 12:02:16 PM5/4/17
to masstrans...@googlegroups.com
The NUnit based test fixtures were kept for compatibility with existing tests and they work fine, but the functionality was moved into the Testing namespace of MassTransit to make it usable with any test framework. 

__
Chris Patterson

From: masstrans...@googlegroups.com <masstrans...@googlegroups.com> on behalf of Дмитрий Ушенко <ushenko...@gmail.com>
Sent: Thursday, May 4, 2017 8:43:29 AM
To: masstransit-discuss
Subject: Re: [masstransit-discuss] InMemoryTestFixture published messages
 
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.

To post to this group, send email to masstrans...@googlegroups.com.

Дмитрий Ушенко

unread,
May 4, 2017, 12:05:12 PM5/4/17
to masstransit-discuss
Okay, got it!
Quickly refactored my test to use InMemoryTestHarnes and it is throwing NRE exception because  _harness.InputQueueSendEndpoint is null. 
await _harness.GetSendEndpoint(_harness.InputQueueAddress) also throws NRE.

четверг, 4 мая 2017 г., 19:02:16 UTC+3 пользователь Chris Patterson написал:
The NUnit based test fixtures were kept for compatibility with existing tests and they work fine, but the functionality was moved into the Testing namespace of MassTransit to make it usable with any test framework. 

__
Chris Patterson

From: masstrans...@googlegroups.com <masstrans...@googlegroups.com> on behalf of Дмитрий Ушенко <ushenko...@gmail.com>
Sent: Thursday, May 4, 2017 8:43:29 AM
To: masstransit-discuss
Subject: Re: [masstransit-discuss] InMemoryTestFixture published messages
 
I'm using InMemoryTestFixture and it's properties InMemoryTestHarness, AsyncTestHarness. Should I avoid using InMemoryTestFixture?

четверг, 4 мая 2017 г., 18:37:35 UTC+3 пользователь Chris Patterson написал:

On Thu, May 4, 2017 at 3:37 AM, Дмитрий Ушенко <ushenko...@gmail.com> wrote:
Hello,
how can i get messages, which were published from within the consumer? I've checked every Published, Sent, Consumed properties on every harnesses but don't see any published messages. Only the incoming message.

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/b5734ae3-3026-442f-926f-7fb99e35f785%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.

Дмитрий Ушенко

unread,
May 5, 2017, 6:07:00 AM5/5/17
to masstransit-discuss
Found!. Harness must be started first.

четверг, 4 мая 2017 г., 19:05:12 UTC+3 пользователь Дмитрий Ушенко написал:
Reply all
Reply to author
Forward
0 new messages