mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-12 22:03:30 +08:00
refactor(tests): 添加CQRS抽象层依赖项
- 在ContainerRegistrationFixtures.cs中添加GFramework.Core.Abstractions.Cqrs命名空间引用 - 在MicrosoftDiContainerTests.cs中添加GFramework.Core.Abstractions.Cqrs命名空间引用 - 统一测试文件中的依赖注入配置 - 确保CQRS相关接口的正确引用路径
This commit is contained in:
parent
34e140e919
commit
49ed5d0d06
@ -11,6 +11,8 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
using GFramework.Core.Abstractions.Cqrs;
|
||||||
|
|
||||||
namespace GFramework.Core.Tests.Cqrs;
|
namespace GFramework.Core.Tests.Cqrs;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using GFramework.Core.Abstractions.Bases;
|
using GFramework.Core.Abstractions.Bases;
|
||||||
|
using GFramework.Core.Abstractions.Cqrs;
|
||||||
using GFramework.Core.Ioc;
|
using GFramework.Core.Ioc;
|
||||||
using GFramework.Core.Logging;
|
using GFramework.Core.Logging;
|
||||||
using GFramework.Core.Tests.Cqrs;
|
using GFramework.Core.Tests.Cqrs;
|
||||||
@ -13,8 +14,6 @@ namespace GFramework.Core.Tests.Ioc;
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class MicrosoftDiContainerTests
|
public class MicrosoftDiContainerTests
|
||||||
{
|
{
|
||||||
private MicrosoftDiContainer _container = null!;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 在每个测试方法执行前进行设置
|
/// 在每个测试方法执行前进行设置
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -34,6 +33,8 @@ public class MicrosoftDiContainerTests
|
|||||||
CqrsTestRuntime.RegisterInfrastructure(_container);
|
CqrsTestRuntime.RegisterInfrastructure(_container);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private MicrosoftDiContainer _container = null!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 测试注册单例实例的功能
|
/// 测试注册单例实例的功能
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user