public void GivenIAttemptToCreateAOrganizationServiceWithTheSameName()
 {
     try
     {
         _orgClientContext.CreateService(_orgClientContext.LastCreatedService.Name);
     }
     catch (BaseException be)
     {
         _commonContext.RecordException(be);
     }
 }
 public void WhenIAttemptToUnlinkTheDeviceWithTheID(string deviceId)
 {
     try
     {
         _directoryClientContext.UnlinkDevice(_directoryClientContext.CurrentUserId, deviceId);
     }
     catch (BaseException e)
     {
         _commonContext.RecordException(e);
     }
 }
 public void WhenIAttemptToDeleteTheSessionsForTheUser(string p0)
 {
     try
     {
         _directoryClientContext.EndAllServiceSessions(p0);
     }
     catch (BaseException e)
     {
         _commonContext.RecordException(e);
     }
 }
Example #4
0
 public void GivenIAttemptToCreateADirectoryServiceWithTheSameName()
 {
     try
     {
         _directoryClientContext.CreateService(_directoryClientContext.LastCreatedService.Name);
     }
     catch (BaseException e)
     {
         _commonContext.RecordException(e);
     }
 }
 public void WhenIAttemptToSendASessionStartRequestForUser(string userId)
 {
     try
     {
         _directoryServiceClientContext.SessionStart(
             userId, null
             );
     }
     catch (BaseException e)
     {
         _commonContext.RecordException(e);
     }
 }
 public void WhenIAttemptToRetrieveThePolicyForTheOrganizationServiceWithTheID(string serviceId)
 {
     try
     {
         _directoryClientContext.SetServicePolicy(
             Guid.Parse(serviceId),
             new ServicePolicy()
             );
     }
     catch (BaseException e)
     {
         _commonContext.RecordException(e);
     }
 }
 public void GivenIAttemptToCreateADirectoryWithTheSameName()
 {
     try
     {
         _orgClientContext.CreateDirectory(_orgClientContext.LastCreatedDirectory.Name);
     }
     catch (BaseException e)
     {
         _commonContext.RecordException(e);
     }
 }
Example #8
0
 public void WhenIAttemptToCreateANewConditionalGeofencePolicyWithTheInsidePolicySetToTheNewPolicy()
 {
     try
     {
         policy = new ConditionalGeoFencePolicy(
             inside: policy,
             outside: new MethodAmountPolicy(null),
             fences: null,
             denyRootedJailbroken: false,
             denyEmulatorSimulator: false
             );
     }
     catch (BaseException e)
     {
         _commonContext.RecordException(e);
     }
 }
 public void WhenIAttemptToAddAPublicKeyToTheDirectoryServiceWithTheID(string p0)
 {
     try
     {
         _directoryClientContext.AddServicePublicKey(Guid.Parse(p0), _keyManager.GetAlphaPublicKey(), true, null);
     }
     catch (BaseException e)
     {
         _commonContext.RecordException(e);
     }
 }
Example #10
0
 public void WhenIAttemptToAddAPublicKeyToTheOrganizationServiceWithTheID(string serviceId)
 {
     try
     {
         _orgClientContext.AddServicePublicKey(Guid.Parse(serviceId), _keyManager.GetAlphaPublicKey(), true, null);
     }
     catch (BaseException e)
     {
         _commonContext.RecordException(e);
     }
 }
 public void WhenIAttemptToMakeAnPolicyBasedAuthorizationRequestForTheUserIdentifiedBy(string userId)
 {
     try
     {
         _directoryServiceClientContext.Authorize(
             userId,
             null,
             new AuthPolicy(
                 _numFactors,
                 _knowledge,
                 _inherence,
                 _possession,
                 _jailbreak,
                 _locations
                 )
             );
     }
     catch (BaseException e)
     {
         _commonContext.RecordException(e);
     }
 }
Example #12
0
 public void WhenIAttemptToAddAPublicKeyToTheDirectoryWithTheID(string directoryId)
 {
     try
     {
         _orgClientContext.AddDirectoryPublicKey(
             Guid.Parse(directoryId),
             _keyManager.GetAlphaPublicKey(),
             true,
             null
             );
     }
     catch (BaseException e)
     {
         _commonContext.RecordException(e);
     }
 }