public Guid CreateService(string name, string description, Uri icon, Uri callbackUrl, bool active)
        {
            var request  = new ServicesPostRequest(name, description, icon, callbackUrl, active);
            var response = _transport.DirectoryV3ServicesPost(request, _directoryId);

            return(response.Id);
        }
        public ServicesPostResponse DirectoryV3ServicesPost(ServicesPostRequest request, EntityIdentifier subject)
        {
            var response        = ExecuteRequest(HttpMethod.POST, "/directory/v3/services", subject, request, null);
            var serviceResponse = DecryptResponse <ServicesPostResponse>(response);

            return(serviceResponse);
        }
        public void Constructor_ShouldSetProperties()
        {
            var req = new ServicesPostRequest("n", "d", new Uri("http://a.com"), new Uri("http://b.com"), true);

            Assert.AreEqual("n", req.Name);
            Assert.AreEqual("d", req.Description);
            Assert.AreEqual(new Uri("http://a.com"), req.Icon);
            Assert.AreEqual(new Uri("http://b.com"), req.CallbackUrl);
            Assert.AreEqual(true, req.Active);
        }