10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
AuthzLicensingClientMock.h
1#ifndef TENDUKE_TEST_MOCKS_AUTHZLICENSINGCLIENTMOCK_H
2#define TENDUKE_TEST_MOCKS_AUTHZLICENSINGCLIENTMOCK_H
3
4#include "licensing/authz/AuthzLicensingClient.h"
5
6#include "gmock/gmock.h"
7
8namespace tenduke { namespace test { namespace mocks {
9
11{
12public:
13 MOCK_METHOD((std::unique_ptr<tenduke::ee::licensing::authzapi::LicenseCheckoutRequest>), checkout, (const tenduke::ee::licensing::LicenseCheckoutParameters &parameters), (const, override));
14 MOCK_METHOD((std::unique_ptr<tenduke::ee::licensing::authzapi::LicenseReleaseRequest>), release, (const tenduke::ee::licensing::LicenseReleaseParameters &parameters), (const, override));
15 MOCK_METHOD((std::unique_ptr<::tenduke::ee::licensing::authzapi::LicenseRenewRequest>), renew, (const ::tenduke::ee::licensing::LicenseRenewParameters &parameters), (const, override));
16
17 static std::shared_ptr<AuthzLicensingClientMock> createShared()
18 {
19 return std::make_shared<AuthzLicensingClientMock>();
20 }
21};
22
23}}}
24
25#endif //TENDUKE_TEST_MOCKS_AUTHZLICENSINGCLIENTMOCK_H
Parameters for license checkout request.
Definition LicenseCheckoutParameters.h:18
Parameters for license-release request.
Definition LicenseReleaseParameters.h:13
Low-level client for licensing operations using 10Duke /authz/-API.
Definition AuthzLicensingClient.h:27
virtual std::unique_ptr< tenduke::ee::licensing::authzapi::LicenseCheckoutRequest > checkout(const tenduke::ee::licensing::LicenseCheckoutParameters &parameters) const =0
Checks out license(s).
virtual std::unique_ptr<::tenduke::ee::licensing::authzapi::LicenseRenewRequest > renew(const ::tenduke::ee::licensing::LicenseRenewParameters &parameters) const =0
Renews leases of checked out license(s).
virtual std::unique_ptr< tenduke::ee::licensing::authzapi::LicenseReleaseRequest > release(const tenduke::ee::licensing::LicenseReleaseParameters &parameters) const =0
Releases checked out license(s).
Definition AuthzLicensingClientMock.h:11
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4