public void id_is_required()
        {
            var repos = Substitute.For<IQueueRepository>();
            var client = Substitute.For<IStompClient>();
            var msg = new BasicFrame("UNSUBSCRIBE");

            var sut = new UnsubscribeHandler(repos);
            Action actual =()=> sut.Process(client, msg);

            actual.ShouldThrow<BadRequestException>();
        }
        public void subscription_must_exist()
        {
            var repos = Substitute.For<IQueueRepository>();
            var client = Substitute.For<IStompClient>();
            var msg = new BasicFrame("UNSUBSCRIBE");
            msg.Headers["id"] = "1";

            var sut = new UnsubscribeHandler(repos);
            Action actual = () => sut.Process(client, msg);

            actual.ShouldThrow<BadRequestException>();
        }
        public void Test()
        {
            var repos = Substitute.For<IQueueRepository>();
            var client = Substitute.For<IStompClient>();
            var msg = new BasicFrame("UNSUBSCRIBE");
            msg.Headers["id"] = "1";
            client.RemoveSubscription("1").Returns(new Subscription(client, "1"));

            var sut = new UnsubscribeHandler(repos);
            var actual = sut.Process(client, msg);

            actual.Should().BeNull();
        }