升级
This commit is contained in:
1 parent
cec56564b5
commit
ae075bda6d
32 files changed
+10052
-90
No files matched your search
@@ -22,7 +22,7 @@ public sealed class BaseDataControllerTests : IAsyncDisposable
|
||||
.Options;
|
||||
db = new AppDbContext(options);
|
||||
db.Database.EnsureCreated();
|
||||
controller = new BaseDataController(db, NoOpAppCache.Instance);
|
||||
controller = new BaseDataController(db, NoOpAppCache.Instance, new ArchiveTestScope());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -57,6 +57,7 @@ public sealed class BaseDataControllerTests : IAsyncDisposable
|
||||
var archiveResult = await controller.ArchiveTerm(
|
||||
history.Id, CancellationToken.None);
|
||||
Assert.Null(archiveResult.Result);
|
||||
history = archiveResult.Value!;
|
||||
Assert.True(history.IsArchived);
|
||||
Assert.NotNull(history.ArchivedAt);
|
||||
Assert.True(history.IsEnabled);
|
||||
@@ -64,6 +65,7 @@ public sealed class BaseDataControllerTests : IAsyncDisposable
|
||||
var unarchiveResult = await controller.UnarchiveTerm(
|
||||
history.Id, CancellationToken.None);
|
||||
Assert.Null(unarchiveResult.Result);
|
||||
history = unarchiveResult.Value!;
|
||||
Assert.False(history.IsArchived);
|
||||
Assert.Null(history.ArchivedAt);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user