mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-12 22:03:30 +08:00
chore(tests): 添加Cqrs抽象依赖到架构测试
- 在ArchitectureContextTests中添加GFramework.Cqrs.Abstractions.Cqrs命名空间引用
This commit is contained in:
parent
a068a5e707
commit
fe73d13991
@ -16,6 +16,7 @@ using GFramework.Core.Events;
|
|||||||
using GFramework.Core.Ioc;
|
using GFramework.Core.Ioc;
|
||||||
using GFramework.Core.Logging;
|
using GFramework.Core.Logging;
|
||||||
using GFramework.Core.Query;
|
using GFramework.Core.Query;
|
||||||
|
using GFramework.Cqrs.Abstractions.Cqrs;
|
||||||
|
|
||||||
namespace GFramework.Core.Tests.Architectures;
|
namespace GFramework.Core.Tests.Architectures;
|
||||||
|
|
||||||
@ -44,15 +45,6 @@ namespace GFramework.Core.Tests.Architectures;
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ArchitectureContextTests
|
public class ArchitectureContextTests
|
||||||
{
|
{
|
||||||
private AsyncQueryExecutor? _asyncQueryBus;
|
|
||||||
private CommandExecutor? _commandBus;
|
|
||||||
private MicrosoftDiContainer? _container;
|
|
||||||
|
|
||||||
private ArchitectureContext? _context;
|
|
||||||
private DefaultEnvironment? _environment;
|
|
||||||
private EventBus? _eventBus;
|
|
||||||
private QueryExecutor? _queryBus;
|
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void SetUp()
|
public void SetUp()
|
||||||
{
|
{
|
||||||
@ -84,6 +76,15 @@ public class ArchitectureContextTests
|
|||||||
_context = new ArchitectureContext(_container);
|
_context = new ArchitectureContext(_container);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private AsyncQueryExecutor? _asyncQueryBus;
|
||||||
|
private CommandExecutor? _commandBus;
|
||||||
|
private MicrosoftDiContainer? _container;
|
||||||
|
|
||||||
|
private ArchitectureContext? _context;
|
||||||
|
private DefaultEnvironment? _environment;
|
||||||
|
private EventBus? _eventBus;
|
||||||
|
private QueryExecutor? _queryBus;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 测试构造函数在所有参数都有效时不应抛出异常
|
/// 测试构造函数在所有参数都有效时不应抛出异常
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user