Skip to content

Commit

Permalink
fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
dhiren-singh-007 committed Jan 9, 2025
1 parent 8516b5b commit 8d0c07c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public async Task TriggerOfferProvider_WithValidCall_ReturnsExpected()
.Returns(httpClient);
const string url = "https://trigger.com";
var data = _fixture.Create<OfferThirdPartyAutoSetupData>();
var service = new OfferProviderService(_tokenService, _options);
var service = new OfferProviderService(_tokenService);

// Act
var result = await service.TriggerOfferProvider(data, url, "https://auth.url", "test1", "Sup3rS3cureTest!", CancellationToken.None);
Expand All @@ -89,7 +89,7 @@ public async Task TriggerOfferProvider_WithUnsuccessfulStatusCode_ThrowsExceptio
A.CallTo(() => _tokenService.GetAuthorizedClient<OfferProviderService>(_options.Value, A<CancellationToken>._))
.Returns(httpClient);
var data = _fixture.Create<OfferThirdPartyAutoSetupData>();
var service = new OfferProviderService(_tokenService, _options);
var service = new OfferProviderService(_tokenService);

// Act
async Task Act() => await service.TriggerOfferProvider(data, "https://callback.com", "https://auth.url", "test1", "Sup3rS3cureTest!", CancellationToken.None);
Expand All @@ -108,7 +108,7 @@ public async Task TriggerOfferProvider_WithException_ThrowsException()
A.CallTo(() => _tokenService.GetAuthorizedClient<OfferProviderService>(_options.Value, A<CancellationToken>._))
.Returns(httpClient);
var data = _fixture.Create<OfferThirdPartyAutoSetupData>();
var service = new OfferProviderService(_tokenService, _options);
var service = new OfferProviderService(_tokenService);

// Act
async Task Act() => await service.TriggerOfferProvider(data, "https://callback.com", "https://auth.url", "test1", "Sup3rS3cureTest!", CancellationToken.None);
Expand All @@ -132,7 +132,7 @@ public async Task TriggerOfferProviderCallback_WithValidCall_ReturnsExpected()
.Returns(httpClient);
const string url = "https://trigger.com";
var data = _fixture.Create<OfferProviderCallbackData>();
var service = new OfferProviderService(_tokenService, _options);
var service = new OfferProviderService(_tokenService);

// Act
var result = await service.TriggerOfferProviderCallback(data, url, "https://auth.url", "test1", "Sup3rS3cureTest!", CancellationToken.None);
Expand All @@ -151,7 +151,7 @@ public async Task TriggerOfferProviderCallback_WithUnsuccessfulStatusCode_Throws
A.CallTo(() => _tokenService.GetAuthorizedClient<OfferProviderService>(_options.Value, A<CancellationToken>._))
.Returns(httpClient);
var data = _fixture.Create<OfferProviderCallbackData>();
var service = new OfferProviderService(_tokenService, _options);
var service = new OfferProviderService(_tokenService);

// Act
async Task Act() => await service.TriggerOfferProviderCallback(data, "https://callback.com", "https://auth.url", "test1", "Sup3rS3cureTest!", CancellationToken.None);
Expand All @@ -170,7 +170,7 @@ public async Task TriggerOfferProviderCallback_WithException_ThrowsException()
A.CallTo(() => _tokenService.GetAuthorizedClient<OfferProviderService>(_options.Value, A<CancellationToken>._))
.Returns(httpClient);
var data = _fixture.Create<OfferProviderCallbackData>();
var service = new OfferProviderService(_tokenService, _options);
var service = new OfferProviderService(_tokenService);

// Act
async Task Act() => await service.TriggerOfferProviderCallback(data, "https://callback.com", "https://auth.url", "test1", "Sup3rS3cureTest!", CancellationToken.None);
Expand Down

0 comments on commit 8d0c07c

Please sign in to comment.