Beispiel #1
0
            public async Task ShouldEnqueueGoodbyeAndSend()
            {
                var mockConn = new Mock <IConnection>();
                await BoltV3.LogoutAsync(mockConn.Object);

                mockConn.Verify(x => x.Enqueue(It.IsAny <GoodbyeMessage>(), null, null), Times.Once);
                mockConn.Verify(x => x.SendAsync());
            }