[rabbitmq-discuss] System.ObjectDisposedException
Mike Hadlow
mike at suteki.co.uk
Fri Feb 21 16:09:09 GMT 2014
So, by integration test you mean a test that will open a connection to
RabbitMQ and publish/consume right?
Of course that's possible. But it means that you'll need a RabbitMQ broker
running every time you run the tests, not great for unit tests.
If, on the other hand, you want to run 'unit tests', you'll need to mock
the client library (RabbitMQ.Client or EasyNetQ, whatever you choose to use)
Mike
On Fri, Feb 21, 2014 at 2:30 PM, Derek Johnston <derekejohnston at gmail.com>wrote:
> Hi Mike
>
> sorry I want to write an integration test to publish and consume the
> message from the queue
>
> is this possible in a test or even advisable?
>
> regards
>
>
>
>
> On Fri, Feb 21, 2014 at 2:25 PM, Mike Hadlow <mike at suteki.co.uk> wrote:
>
>> Hi Derek,
>>
>> Not sure what you mean. It's pretty straightforward to mock EasyNetQ.
>> Check out EasyNetQ's unit tests:
>> https://github.com/mikehadlow/EasyNetQ/tree/master/Source/EasyNetQ.Tests
>>
>> Mike
>>
>>
>>
>>
>> On Fri, Feb 21, 2014 at 2:02 PM, Derek Johnston <derekejohnston at gmail.com
>> > wrote:
>>
>>> Hi Mike
>>>
>>> do you have a working example of this?
>>>
>>> http://dotnet.dzone.com/articles/easynetq-big-breaking-changes
>>>
>>> I want to write a unit test to write to a queue and read from the queue
>>>
>>> I can do it with rabbitmq client but not with easynetq
>>>
>>> can you help?
>>>
>>> derek
>>>
>>>
>>> On Thu, Feb 20, 2014 at 8:47 AM, Mike Hadlow <mike at suteki.co.uk> wrote:
>>>
>>>> Hi Derek,
>>>>
>>>> We've been using RabbitMQ with .NET for several years now. Works fine.
>>>>
>>>> You might want to take a look at EasyNetQ, it's a higher-level API for
>>>> using RabbitMQ with .NET.
>>>>
>>>> http://easynetq.com/
>>>>
>>>> I am the author, so if you've got any questions, feel free to ask.
>>>>
>>>> Mike
>>>>
>>>>
>>>>
>>>> On Thu, Feb 20, 2014 at 8:32 AM, Michael Klishin <
>>>> mklishin at gopivotal.com> wrote:
>>>>
>>>>>
>>>>> On 20 Feb 2014, at 12:25, Derek Johnston <derekejohnston at gmail.com>
>>>>> wrote:
>>>>>
>>>>> > is there an way to get rabbitmq to work on .net environment?
>>>>>
>>>>> Does .NET version of the tutorials work in your environment?
>>>>>
>>>>> http://www.rabbitmq.com/getstarted.html
>>>>> https://github.com/rabbitmq/rabbitmq-tutorials/tree/master/dotnet
>>>>>
>>>>> MK
>>>>>
>>>>> Software Engineer, Pivotal/RabbitMQ
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> rabbitmq-discuss mailing list
>>>>> rabbitmq-discuss at lists.rabbitmq.com
>>>>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> rabbitmq-discuss mailing list
>>>> rabbitmq-discuss at lists.rabbitmq.com
>>>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>>>
>>>>
>>>
>>> _______________________________________________
>>> rabbitmq-discuss mailing list
>>> rabbitmq-discuss at lists.rabbitmq.com
>>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>>
>>>
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
>>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140221/7c5e7ee9/attachment.html>
More information about the rabbitmq-discuss
mailing list