コード例 #1
0
        private ApiClient SetupDefaultSandboxClient(SandboxInitializationModel createModel, User user)
        {
            var defaultApplication = _defaultApplicationCreator
                                     .FindOrCreateUpdatedDefaultSandboxApplication(user.Vendor.VendorId, createModel.SandboxType);

            return(_clientAppRepo.SetupDefaultSandboxClient(
                       createModel.Name,
                       createModel.SandboxType,
                       createModel.Key,
                       createModel.Secret,
                       user.UserId,
                       defaultApplication.ApplicationId));
        }
コード例 #2
0
        private ApiClient SetupDefaultSandboxClient(string sandboxName, SandboxOptions sandboxOptions, User user)
        {
            var defaultApplication = _defaultApplicationCreator
                                     .FindOrCreateUpdatedDefaultSandboxApplication(user.Vendor.VendorId, sandboxOptions.Type);

            return(_clientAppRepo.SetupDefaultSandboxClient(
                       sandboxName,
                       sandboxOptions.Type,
                       sandboxOptions.Key,
                       sandboxOptions.Secret,
                       user.UserId,
                       defaultApplication.ApplicationId));
        }
コード例 #3
0
 public void Should_not_call_to_find_the_default_sandbox_client()
 {
     A.CallTo(
         () => _defaultApplicationCreator
         .FindOrCreateUpdatedDefaultSandboxApplication(A <int> ._, A <SandboxType> ._)).MustNotHaveHappened();
 }