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)); }
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)); }
public void Should_not_call_to_find_the_default_sandbox_client() { A.CallTo( () => _defaultApplicationCreator .FindOrCreateUpdatedDefaultSandboxApplication(A <int> ._, A <SandboxType> ._)).MustNotHaveHappened(); }