fix
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 24s
Docker Build & Deploy / Deploy to Production (push) Successful in 6s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 3s
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 24s
Docker Build & Deploy / Deploy to Production (push) Successful in 6s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 3s
This commit is contained in:
@@ -51,7 +51,7 @@ public class TransactionPeriodicServiceTest : BaseTest
|
||||
// Assert
|
||||
// Service inserts Amount directly from periodicBill.Amount (100 is positive)
|
||||
await _transactionRepository.Received(1).AddAsync(Arg.Is<TransactionRecord>(t =>
|
||||
t.Amount == 100m &&
|
||||
t.Amount == 100m &&
|
||||
t.Type == TransactionType.Expense &&
|
||||
t.Classify == "餐饮" &&
|
||||
t.Reason == "每日餐费" &&
|
||||
@@ -69,7 +69,7 @@ public class TransactionPeriodicServiceTest : BaseTest
|
||||
|
||||
await _periodicRepository.Received(1).UpdateExecuteTimeAsync(
|
||||
Arg.Is(1L),
|
||||
Arg.Any<DateTime>(),
|
||||
Arg.Any<DateTime>(),
|
||||
Arg.Any<DateTime?>()
|
||||
);
|
||||
}
|
||||
@@ -149,7 +149,7 @@ public class TransactionPeriodicServiceTest : BaseTest
|
||||
m.Content.Contains("每月工资")
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
[Fact]
|
||||
public async Task ExecutePeriodicBillsAsync_未达到执行时间()
|
||||
{
|
||||
@@ -158,7 +158,7 @@ public class TransactionPeriodicServiceTest : BaseTest
|
||||
{
|
||||
Id = 1,
|
||||
PeriodicType = PeriodicType.Weekly,
|
||||
PeriodicConfig = "1,3,5",
|
||||
PeriodicConfig = "1,3,5",
|
||||
Amount = 200m,
|
||||
Type = TransactionType.Expense,
|
||||
Classify = "交通",
|
||||
@@ -191,7 +191,7 @@ public class TransactionPeriodicServiceTest : BaseTest
|
||||
Classify = "餐饮",
|
||||
Reason = "每日餐费",
|
||||
IsEnabled = true,
|
||||
LastExecuteTime = DateTime.Today,
|
||||
LastExecuteTime = DateTime.Today,
|
||||
NextExecuteTime = DateTime.Today.AddDays(1)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user