public PartnerCredentialsServiceTests()
        {
            _partnerCredentials = new PartnerCredentials {
                ClientId = ClientId, PartnerId = PartnerId
            };
            _partnerCredentials.SetPassword(ClientSecret);

            _partnerCredentialsRepositoryMock.Setup(x => x.GetByClientIdAsync(It.IsAny <string>()))
            .Returns((string clientId) => Task.FromResult(_partnerCredentials));

            _partnerCredentialsRepositoryMock.Setup(x => x.GetByPartnerIdAsync(It.IsAny <string>()))
            .Returns((string partnerId) => Task.FromResult(_partnerCredentials));

            _partnerCredentialsService =
                new PartnerCredentialsService(_partnerCredentialsRepositoryMock.Object, EmptyLogFactory.Instance);
        }
 public PartnersController(IPartnerCredentialsService partnerCredentialsService, ILogFactory logFactory)
 {
     _partnerCredentialsService = partnerCredentialsService;
     _log = logFactory.CreateLog(this);
 }