Skip to content

Commit b83d7b0

Browse files
Tidy merchant schedule naming
Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
1 parent 0c07727 commit b83d7b0

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

TransactionProcessor.BusinessLogic.Tests/Manager/TransactionProcessorManagerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public async Task TransactionProcessorManager_GetMerchantSchedule_MerchantSchedu
373373
}
374374

375375
[Fact]
376-
public async Task TransactionProcessorManager_GetMerchantSchedule_MerchantScheduleNotCreated_ErrorThrown()
376+
public async Task TransactionProcessorManager_GetMerchantSchedule_MerchantScheduleNotCreated_ReturnsFailure()
377377
{
378378
this.AggregateService
379379
.Setup(m => m.GetLatest<MerchantScheduleAggregate>(It.IsAny<Guid>(), It.IsAny<CancellationToken>()))

TransactionProcessor/Factories/ModelFactory.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,17 +512,17 @@ public static MerchantResponse ConvertFrom(Models.Merchant.Merchant merchant)
512512
return merchantResponse;
513513
}
514514

515-
public static MerchantScheduleResponse ConvertFrom(TransactionProcessor.Models.MerchantSchedule.MerchantSchedule schedule)
515+
public static MerchantScheduleResponse ConvertFrom(TransactionProcessor.Models.MerchantSchedule.MerchantSchedule merchantSchedule)
516516
{
517-
if (schedule == null)
517+
if (merchantSchedule == null)
518518
{
519519
return null;
520520
}
521521

522522
return new MerchantScheduleResponse
523523
{
524-
Year = schedule.Year,
525-
Months = schedule.Months.Select(month => new MerchantScheduleMonthResponse
524+
Year = merchantSchedule.Year,
525+
Months = merchantSchedule.Months.Select(month => new MerchantScheduleMonthResponse
526526
{
527527
Month = month.Month,
528528
ClosedDays = [.. month.ClosedDays]

0 commit comments

Comments
 (0)