Beispiel #1
0
        public void ShouldSerializeCorrectly()
        {
            var encoder = new JsonNetJsonEncoder();
            var o       = new DirectoryV3SessionsDeleteRequest("id");
            var json    = encoder.EncodeObject(o);

            Assert.AreEqual("{\"identifier\":\"id\"}", json);
        }
        public void EndAllServiceSessions(string userId)
        {
            var request = new DirectoryV3SessionsDeleteRequest(userId);

            _transport.DirectoryV3SessionsDelete(request, _directoryId);
        }
 public void DirectoryV3SessionsDelete(DirectoryV3SessionsDeleteRequest request, EntityIdentifier subject)
 {
     ExecuteRequest(HttpMethod.DELETE, "/directory/v3/sessions", subject, request, null);
 }
Beispiel #4
0
        public void Constructor_ShouldSetProperties()
        {
            var o = new DirectoryV3SessionsDeleteRequest("id");

            Assert.AreEqual(o.Identifier, "id");
        }