Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

194581 - integrate s100 ess updatesince endpoint to scs stub #410

Merged
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b2f0fc6
194581 - unit test changes added AB#194581 AB#196237
MastekRohitChettri Jan 3, 2025
62ca330
194581 - unit test added AB#194581 AB#196237
MastekRohitChettri Jan 3, 2025
5adbdb5
194581- code refactored AB#194581
MastekRohitChettri Jan 6, 2025
81f2279
194581 - code refactored AB#194581
MastekRohitChettri Jan 6, 2025
cc3181b
194581 - code refactored AB#194581
MastekRohitChettri Jan 6, 2025
c578e9f
Merge branch 'develop-s100' into dev/194581-integrate-ess-s100-update…
MastekRohitChettri Jan 7, 2025
18d1bb9
Merge branch 'dev/s100-scs-api-integration' into dev/194581-integrate…
MastekRohitChettri Jan 7, 2025
ba4b048
Merge branch 'dev/195923-create-stubs-for-s100-scs-updatesince' into …
MastekRohitChettri Jan 7, 2025
c16ebb3
194581 - code refactored AB#194581
MastekRohitChettri Jan 7, 2025
560540e
Merge branch 'dev/s100-scs-api-integration' into dev/194581-integrate…
MastekRohitChettri Jan 7, 2025
fbcc033
Merge branch 'develop-s100' into dev/194581-integrate-ess-s100-update…
MastekRohitChettri Jan 7, 2025
1bb9cea
194581 - merged with develop AB#194581
MastekRohitChettri Jan 7, 2025
15811da
194581 - added FTs - AB#194581
Jan 7, 2025
4c21d61
194581 - code refactored AB#194581
MastekRohitChettri Jan 8, 2025
4220959
194581 - merged with develop AB#194581
MastekRohitChettri Jan 8, 2025
01cc02b
194581 - FTs code refactored - AB#196214 AB#194581
Jan 8, 2025
fcd0dc5
194581 - code refactored AB#194581
MastekRohitChettri Jan 8, 2025
c30cd77
194581 -Added New FT AB#196214 AB#194581
Jan 8, 2025
b9c16e6
Merge branch 'dev/194581-integrate-ess-s100-updatesince-to-scs-stub' …
Jan 8, 2025
5570d9c
194581 - Updated Test Name AB#194581
Jan 9, 2025
4581a76
194581 - merged with develop AB#194581
MastekRohitChettri Jan 10, 2025
8ba94ae
194581 - code refactored AB#194581
MastekRohitChettri Jan 10, 2025
115f0a2
194581 - added code for productIdentifier validation and 404 response…
Jan 10, 2025
f7a581b
Merge branch 'dev/194581-integrate-ess-s100-updatesince-to-scs-stub' …
Jan 10, 2025
3591134
194581 - added error message for scs stub AB#194581 AB#197779
Jan 10, 2025
6e38161
194581 - ESS internal open api spec updated for updatesSince not foun…
harshal11869 Jan 13, 2025
af675e1
194581 - added regex for productIdentifier in scs stub AB#194581 AB#1…
Jan 13, 2025
2ce3a8f
Merge branch 'dev/194581-integrate-ess-s100-updatesince-to-scs-stub' …
Jan 13, 2025
cb735d3
194581 - code refactored AB#194581
MastekRohitChettri Jan 13, 2025
6f70af8
194581- removed enum from scs stub AB#194581 AB#197779
Jan 13, 2025
6da7a2d
194581 - code refactored AB#194581
MastekRohitChettri Jan 13, 2025
c70ec25
194581 - changes in FTs post rework AB#194581 AB#197857
Jan 13, 2025
d31f78a
194581 - Removed unwanted code AB#194581 AB#197857
Jan 13, 2025
eed6065
194581 - code merged with develop AB#194581
MastekRohitChettri Jan 14, 2025
e377dab
194581 - code refactored AB#194581
MastekRohitChettri Jan 14, 2025
5f3c311
194581 - code refactored AB#194581
MastekRohitChettri Jan 14, 2025
6069fee
194581 - review comment resolved AB#194581
MastekRohitChettri Jan 14, 2025
5ef7313
194581 - code refactored AB#194581
MastekRohitChettri Jan 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@

namespace UKHO.ExchangeSetService.API.FunctionalTests.FunctionalTests.S_100
{
public class S100EssEndPointsAuthorizationScenarios : ObjectStorage
public class S100EssEndPointsScenarios : ObjectStorage
{
private string sinceDateTime;
private UpdatesSinceModel sinceDateTimePayload;
private List<string> productNames;

[OneTimeSetUp]
public void OneTimeSetUp()
{
sinceDateTime = DateTime.UtcNow.AddDays(-12).ToString("yyyy-MM-ddTHH:mm:ss.fffZ", CultureInfo.InvariantCulture);
sinceDateTimePayload = DataHelper.GetSinceDateTime(sinceDateTime);
ProductVersionData =
[
DataHelper.GetProductVersionModelData("101GB40079ABCDEFG", 7, 10),
Expand All @@ -29,21 +26,73 @@ public void OneTimeSetUp()
productNames = DataHelper.GetProductNamesForS100();
}

[SetUp]
public void SetUp()
{
sinceDateTimePayload = DataHelper.GetSinceDateTime(DateTime.UtcNow.AddDays(-1).ToString("yyyy-MM-ddTHH:mm:ss.fffZ", CultureInfo.InvariantCulture)); // Default value of -1
}

//PBI 194403: Azure AD Authorization
//PBI 194581: Integrate S-100 ESS API Endpoint /updatesSince with corresponding SCS Stub
[Test]
[Category("QCOnlyTest-AIOEnabled")]
public async Task WhenICallS100UpdatesSinceEndPointWithValidTokenAndValidDate_ThenResponseCodeReturnedIs202Accepted()
{
var apiResponse = await ExchangeSetApiClient.GetExchangeSetBasedOnDateTimeAsync(null, null, EssJwtToken, "s100", sinceDateTimePayload);
Assert.That((int)apiResponse.StatusCode, Is.EqualTo(202), $"Incorrect status code is returned {apiResponse.StatusCode}, instead of the expected 202.");
await apiResponse.VerifyEssS100ApiResponseBodyDetails(0, 7, 0);
}

//PBI 194403: Azure AD Authorization
//PBI 194581: Integrate S-100 ESS API Endpoint /updatesSince with corresponding SCS Stub
[Test]
[Category("QCOnlyTest-AIOEnabled")]
public async Task WhenICallS100UpdatesSinceEndPointWithValidToken_ThenResponseCodeReturnedIs202Accepted()
public async Task WhenICallS100UpdatesSinceEndPointWithValidTokenAndValidDateWithProductIdentifierParam_ThenResponseCodeReturnedIs202Accepted()
{
var apiResponse = await ExchangeSetApiClient.GetExchangeSetBasedOnDateTimeAsync(sinceDateTime, null, EssJwtToken, "s100", sinceDateTimePayload);
var apiResponse = await ExchangeSetApiClient.GetExchangeSetBasedOnDateTimeAsync(null, null, EssJwtToken, "s100", sinceDateTimePayload, "s102");
Assert.That((int)apiResponse.StatusCode, Is.EqualTo(202), $"Incorrect status code is returned {apiResponse.StatusCode}, instead of the expected 202.");
await apiResponse.VerifyEssS100ApiResponseBodyDetails(0, 8, 0);
}

//PBI 194403: Azure AD Authorization
//PBI 194581: Integrate S-100 ESS API Endpoint /updatesSince with corresponding SCS Stub
[Test]
[Category("QCOnlyTest-AIOEnabled")]
public async Task WhenICallS100UpdatesSinceEndPointWithValidTokenForADateWhichHasNoUpdateWithProductIdentifierParam_ThenResponseCodeReturnedIs304NotModified()
{
sinceDateTimePayload = DataHelper.GetSinceDateTime(DateTime.UtcNow.AddDays(-10).ToString("yyyy-MM-ddTHH:mm:ss.fffZ", CultureInfo.InvariantCulture)); // Set a date that has no updates
var apiResponse = await ExchangeSetApiClient.GetExchangeSetBasedOnDateTimeAsync(null, null, EssJwtToken, "s100", sinceDateTimePayload, "s111");
Assert.That((int)apiResponse.StatusCode, Is.EqualTo(304), $"Incorrect status code is returned {apiResponse.StatusCode}, instead of the expected 304.");
Assert.That(await apiResponse.Content.ReadAsStringAsync(), Is.Empty, "Response body is not empty.");
}

//PBI 194403: Azure AD Authorization
//PBI 194581: Integrate S-100 ESS API Endpoint /updatesSince with corresponding SCS Stub
[Test]
[Category("QCOnlyTest-AIOEnabled")]
public async Task WhenICallS100UpdatesSinceEndPointWithValidTokenButWithInValidDateTimeFormat_ThenResponseCodeReturnedIs400BadRequest()
{
sinceDateTimePayload = DataHelper.GetSinceDateTime(DateTime.UtcNow.AddDays(-10).ToString("MM/dd/yyyy HH:mm", CultureInfo.InvariantCulture));
var apiResponse = await ExchangeSetApiClient.GetExchangeSetBasedOnDateTimeAsync(null, null, EssJwtToken, "s100", sinceDateTimePayload);
Assert.That((int)apiResponse.StatusCode, Is.EqualTo(400), $"Incorrect status code is returned {apiResponse.StatusCode}, instead of the expected 400.");
}

//PBI 194403: Azure AD Authorization
//PBI 194581: Integrate S-100 ESS API Endpoint /updatesSince with corresponding SCS Stub
[Test]
[Category("QCOnlyTest-AIOEnabled")]
public async Task WhenICallS100UpdatesSinceEndPointWithValidTokenButWithInValidExchangeSetStandard_ThenResponseCodeReturnedIs400BadRequest()
{
var apiResponse = await ExchangeSetApiClient.GetExchangeSetBasedOnDateTimeAsync(null, null, EssJwtToken, "s100", sinceDateTimePayload, "s876");
Assert.That((int)apiResponse.StatusCode, Is.EqualTo(400), $"Incorrect status code is returned {apiResponse.StatusCode}, instead of the expected 400.");
}

//PBI 194403: Azure AD Authorization
[Test]
[Category("QCOnlyTest-AIOEnabled")]
public async Task WhenICallS100UpdatesSinceEndPointWithInvalidToken_ThenResponseCodeReturnedIs401Unauthorized()
{
var apiResponse = await ExchangeSetApiClient.GetExchangeSetBasedOnDateTimeAsync(sinceDateTime, null, "InvalidEssJwtToken", "s100", sinceDateTimePayload);
var apiResponse = await ExchangeSetApiClient.GetExchangeSetBasedOnDateTimeAsync(null, null, "InvalidEssJwtToken", "s100", sinceDateTimePayload);
Assert.That((int)apiResponse.StatusCode, Is.EqualTo(401), $"Incorrect status code is returned {apiResponse.StatusCode}, instead of the expected 401.");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,21 @@ public ExchangeSetApiClient(string apiHost)
/// Provide all the releasable data after a datetime. - POST /productData
/// </summary>
/// <param name="updatesSinceModel">updatesSince Model,pass Null to skip the model</param>
/// <param name="productIdentifier">takes values s101, s102, s104 and s111</param>
/// <param name="sincedateTime">The date and time from which changes are requested which follows RFC1123 format</param>
/// <param name="callbackUri">callbackUri, pass NULL to skip call back notification</param>
/// <param name="accessToken">Access Token, pass NULL to skip auth header</param>
/// <param name="exchangeSetStandard">exchangeSetStandard, pass s63 or s57 for valid exchange set</param>
/// <returns></returns>
public async Task<HttpResponseMessage> GetExchangeSetBasedOnDateTimeAsync(string sincedateTime = null, string callbackUri = null, string accessToken = null, string exchangeSetStandard = "s63", UpdatesSinceModel updatesSinceModel = null)
public async Task<HttpResponseMessage> GetExchangeSetBasedOnDateTimeAsync(string sincedateTime = null, string callbackUri = null, string accessToken = null, string exchangeSetStandard = "s63", UpdatesSinceModel updatesSinceModel = null, string productIdentifier = "")
{
var uri = $"{apiHost}/productData";
var payloadJson = string.Empty;

switch (exchangeSetStandard)
{
case "s100":
uri = $"{apiHost}/v2/exchangeSet/s100/updatesSince";
uri = $"{apiHost}/v2/exchangeSet/s100/updatesSince?productIdentifier={productIdentifier}";
payloadJson = JsonConvert.SerializeObject(updatesSinceModel);
break;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,5 +221,27 @@ public static async Task VerifyEssS100ApiResponseBodyDetails(this HttpResponseMe
Assert.That(product.Reason, Is.EqualTo(expectedValue), $"For Product Name {product.ProductName}, expected value was {expectedValue} but found {product.Reason}.");
}
}

/////// <summary>
/////// This method is used to verify the ESS S100 API response body structure.
/////// </summary>
/////// <param name="apiResponse"></param>
/////// <param name="requestedProductCount"></param>
/////// <param name="exchangeSetProductCount"></param>
/////// <param name="requestedProductsAlreadyUpToDateCount"></param>
/////// <param name="requestedProductsNotInExchangeSet"></param>
/////// <returns></returns>
////public static async Task VerifyEssS100ApiResponseBodyDetails(this HttpResponseMessage apiResponse, int requestedProductCount, int exchangeSetProductCount, int requestedProductsAlreadyUpToDateCount, List<string> requestedProductsNotInExchangeSet = null)
////{
//// var responseBody = JsonConvert.DeserializeObject<ExchangeSetBatch>(await apiResponse.Content.ReadAsStringAsync());
//// Assert.That(responseBody.RequestedProductCount == requestedProductCount, $"RequestedProductCount was expected {requestedProductCount} but found " + responseBody.RequestedProductCount);
//// Assert.That(responseBody.ExchangeSetProductCount == exchangeSetProductCount, $"ExchangeSetProductCount was expected {exchangeSetProductCount} but found " + responseBody.ExchangeSetProductCount);
//// Assert.That(responseBody.RequestedProductsAlreadyUpToDateCount == requestedProductsAlreadyUpToDateCount, $"RequestedProductsAlreadyUpToDateCount was expected {requestedProductsAlreadyUpToDateCount} but found " + responseBody.RequestedProductsAlreadyUpToDateCount);
//// foreach (var product in responseBody.RequestedProductsNotInExchangeSet)
//// {
//// Assert.That(requestedProductsNotInExchangeSet!.Contains(product.ProductName),
//// $"Product Name {product.ProductName} not found in requested products not in exchange set.");
//// }
////}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Collections.Generic;
using System;
using System;
using System.Collections.Generic;

namespace UKHO.ExchangeSetService.API.FunctionalTests.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@
using UKHO.ExchangeSetService.Common.Models;
using UKHO.ExchangeSetService.Common.Models.Enums;
using UKHO.ExchangeSetService.Common.Models.Response;
using UKHO.ExchangeSetService.Common.Models.V2.Enums;
using UKHO.ExchangeSetService.Common.Models.V2.Request;
using UKHO.ExchangeSetService.Common.Models.V2.Response;
using ExchangeSetStandard = UKHO.ExchangeSetService.Common.Models.V2.Enums.ExchangeSetStandard;

namespace UKHO.ExchangeSetService.API.UnitTests.Controllers.V2
{
[TestFixture]
public class ExchangeSetControllerTests
{
private const string CallbackUri = "https://callback.uri";
private const string Iso8601DateTimeFormat = "yyyy-MM-ddTHH:mm:ss.fffZ";
private const string ExchangeSetStandard = "s100";
private readonly string _callbackUri = "https://callback.uri";

private IHttpContextAccessor _fakeHttpContextAccessor;
private ILogger<ExchangeSetController> _fakeLogger;
Expand Down Expand Up @@ -77,7 +78,7 @@ public async Task WhenProductNamesIsPassed_ReturnsAcceptedResult()

A.CallTo(() => _fakeHttpContextAccessor.HttpContext.TraceIdentifier).Returns(correlationId);

var response = await _controller.PostProductNames(ExchangeSetStandard, productNames, _callbackUri);
var response = await _controller.PostProductNames(ExchangeSetStandard.s100.ToString(), productNames, CallbackUri);
response.Should().BeOfType<AcceptedResult>().Which.StatusCode.Should().Be(StatusCodes.Status202Accepted);

A.CallTo(_fakeLogger).Where(call => call.Method.Name == "Log"
Expand All @@ -100,11 +101,11 @@ public async Task WhenValidProductVersionsIsPassed_ThenPostProductVersionsReturn
new () { ProductName = "102NO32904820801012", EditionNumber = 36, UpdateNumber = 0 },
};

A.CallTo(() => _fakeExchangeSetStandardService.ProcessProductVersionsRequest(A<IEnumerable<ProductVersionRequest>>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<CancellationToken>.Ignored))
A.CallTo(() => _fakeExchangeSetStandardService.ProcessProductVersionsRequestAsync(A<IEnumerable<ProductVersionRequest>>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<CancellationToken>.Ignored))
.Returns(ServiceResponseResult<ExchangeSetStandardServiceResponse>
.Accepted(null));

var result = await _controller.PostProductVersions(ExchangeSetStandard, productVersionRequest, _callbackUri);
var result = await _controller.PostProductVersions(ExchangeSetStandard.s100.ToString(), productVersionRequest, CallbackUri);

result.Should().BeOfType<AcceptedResult>().Which.StatusCode.Should().Be(StatusCodes.Status202Accepted);

Expand All @@ -128,10 +129,10 @@ public async Task WhenInvalidProductVersionsIsPassed_ThenPostProductVersionsRetu
new () { ProductName = "", EditionNumber = 10, UpdateNumber = 2 },
};

A.CallTo(() => _fakeExchangeSetStandardService.ProcessProductVersionsRequest(A<IEnumerable<ProductVersionRequest>>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<CancellationToken>.Ignored))
A.CallTo(() => _fakeExchangeSetStandardService.ProcessProductVersionsRequestAsync(A<IEnumerable<ProductVersionRequest>>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<CancellationToken>.Ignored))
.Returns(ServiceResponseResult<ExchangeSetStandardServiceResponse>.BadRequest(new ErrorDescription { CorrelationId = Guid.NewGuid().ToString(), Errors = [new() { Source = "requestBody", Description = "Either body is null or malformed." }] }));

var result = await _controller.PostProductVersions(ExchangeSetStandard, productVersionRequest, _callbackUri);
var result = await _controller.PostProductVersions(ExchangeSetStandard.s100.ToString(), productVersionRequest, CallbackUri);

result.Should().BeOfType<BadRequestObjectResult>().Which.StatusCode.Should().Be(StatusCodes.Status400BadRequest);

Expand All @@ -156,10 +157,10 @@ public async Task WhenValidSinceDateTimeRequested_ThenPostUpdatesSinceReturns202
ExchangeSetStandardResponse = GetExchangeSetResponse()
};

A.CallTo(() => _fakeExchangeSetStandardService.ProcessUpdatesSinceRequest(A<UpdatesSinceRequest>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<CancellationToken>.Ignored))
A.CallTo(() => _fakeExchangeSetStandardService.ProcessUpdatesSinceRequestAsync(A<UpdatesSinceRequest>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<CancellationToken>.Ignored))
.Returns(ServiceResponseResult<ExchangeSetStandardServiceResponse>.Accepted(exchangeSetServiceResponse));

var result = await _controller.PostUpdatesSince(ExchangeSetStandard, updatesSinceRequest, "s101", _callbackUri);
var result = await _controller.PostUpdatesSince(ExchangeSetStandard.s100.ToString(), updatesSinceRequest, "s100", CallbackUri);

result.Should().BeOfType<AcceptedResult>().Which.StatusCode.Should().Be(StatusCodes.Status202Accepted);

Expand All @@ -184,10 +185,10 @@ public async Task WhenValidSinceDateTimeAndEmptyProductIdentifierRequested_ThenP
ExchangeSetStandardResponse = GetExchangeSetResponse()
};

A.CallTo(() => _fakeExchangeSetStandardService.ProcessUpdatesSinceRequest(A<UpdatesSinceRequest>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<CancellationToken>.Ignored))
A.CallTo(() => _fakeExchangeSetStandardService.ProcessUpdatesSinceRequestAsync(A<UpdatesSinceRequest>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<CancellationToken>.Ignored))
.Returns(ServiceResponseResult<ExchangeSetStandardServiceResponse>.Accepted(exchangeSetServiceResponse));

var result = await _controller.PostUpdatesSince(ExchangeSetStandard, updatesSinceRequest, "", _callbackUri);
var result = await _controller.PostUpdatesSince(ExchangeSetStandard.s100.ToString(), updatesSinceRequest, "", CallbackUri);

result.Should().BeOfType<AcceptedResult>().Which.StatusCode.Should().Be(StatusCodes.Status202Accepted);

Expand All @@ -205,14 +206,14 @@ public async Task WhenValidSinceDateTimeAndEmptyProductIdentifierRequested_ThenP
[Test]
public async Task WhenNullOrEmptySinceDateTimeRequested_ThenPostUpdatesSinceReturnsBadRequest()
{
A.CallTo(() => _fakeExchangeSetStandardService.ProcessUpdatesSinceRequest(A<UpdatesSinceRequest>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<CancellationToken>.Ignored))
A.CallTo(() => _fakeExchangeSetStandardService.ProcessUpdatesSinceRequestAsync(A<UpdatesSinceRequest>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<CancellationToken>.Ignored))
.Returns(ServiceResponseResult<ExchangeSetStandardServiceResponse>.BadRequest(new ErrorDescription
{
CorrelationId = Guid.NewGuid().ToString(),
Errors = [new() { Source = "requestBody", Description = "Either body is null or malformed." }]
}));

var result = await _controller.PostUpdatesSince(ExchangeSetStandard, null, "s101", _callbackUri);
var result = await _controller.PostUpdatesSince(ExchangeSetStandard.s100.ToString(), null, "s100", CallbackUri);

result.Should().BeOfType<BadRequestObjectResult>().Which.StatusCode.Should().Be(StatusCodes.Status400BadRequest);

Expand All @@ -235,7 +236,7 @@ public async Task WhenInValidDataRequested_ThenPostUpdatesSinceReturnsBadRequest
{
var updatesSinceRequest = new UpdatesSinceRequest { SinceDateTime = DateTime.UtcNow.AddDays(-10).ToString() };

A.CallTo(() => _fakeExchangeSetStandardService.ProcessUpdatesSinceRequest(A<UpdatesSinceRequest>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<CancellationToken>.Ignored))
A.CallTo(() => _fakeExchangeSetStandardService.ProcessUpdatesSinceRequestAsync(A<UpdatesSinceRequest>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<string>.Ignored, A<CancellationToken>.Ignored))
.Returns(ServiceResponseResult<ExchangeSetStandardServiceResponse>.BadRequest(new ErrorDescription
{
CorrelationId = Guid.NewGuid().ToString(),
Expand All @@ -244,7 +245,7 @@ public async Task WhenInValidDataRequested_ThenPostUpdatesSinceReturnsBadRequest
new() { Source = "CallbackUri", Description = "Invalid callbackUri format." }]
}));

var result = await _controller.PostUpdatesSince(ExchangeSetStandard, updatesSinceRequest, inValidProductIdentifier, inValidCallBackUri);
var result = await _controller.PostUpdatesSince(ExchangeSetStandard.s100.ToString(), updatesSinceRequest, inValidProductIdentifier, inValidCallBackUri);

result.Should().BeOfType<BadRequestObjectResult>().Which.StatusCode.Should().Be(StatusCodes.Status400BadRequest);

Expand Down
Loading