Esempio n. 1
0
        public void ServiceBusShouldHaveStringEnumForAccessRights()
        {
            var attribute = new ServiceBusAttribute("queue1", AccessRights.Manage);

            var jObject = attribute.ToJObject();

            jObject.Should().HaveElement("accessRights");
            jObject["accessRights"].Should().Be("manage");
        }
Esempio n. 2
0
        public void ServiceBusShouldHaveCorrectQueueName()
        {
            var attribute = new ServiceBusAttribute("queue1")
            {
                EntityType = EntityType.Queue
            };

            var jObject = attribute.ToJObject();

            jObject.Should().HaveElement("queueName");
            jObject["queueName"].Should().Be("queue1");
        }