Beispiel #1
0
        public async Task Subscribe_With_NullServiceName_Must_ThrowException_Test()
        {
            var ex = await Assert.ThrowsExceptionAsync <ArgumentNullException>(() =>
                                                                               _toTest.SubscribeConsumerAsync(null, "topic-name",
                                                                                                              new Uri("http://test-host"),
                                                                                                              0, 0, 0));

            Assert.AreEqual("serviceName", ex.ParamName);
        }