mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-08 17:44:29 +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
|
||||
// limitations under the License.
|
||||
|
||||
using GFramework.Core.Abstractions.Cqrs;
|
||||
|
||||
namespace GFramework.Core.Tests.Cqrs;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
using System.Reflection;
|
||||
using GFramework.Core.Abstractions.Bases;
|
||||
using GFramework.Core.Abstractions.Cqrs;
|
||||
using GFramework.Core.Ioc;
|
||||
using GFramework.Core.Logging;
|
||||
using GFramework.Core.Tests.Cqrs;
|
||||
@ -13,8 +14,6 @@ namespace GFramework.Core.Tests.Ioc;
|
||||
[TestFixture]
|
||||
public class MicrosoftDiContainerTests
|
||||
{
|
||||
private MicrosoftDiContainer _container = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 在每个测试方法执行前进行设置
|
||||
/// </summary>
|
||||
@ -34,6 +33,8 @@ public class MicrosoftDiContainerTests
|
||||
CqrsTestRuntime.RegisterInfrastructure(_container);
|
||||
}
|
||||
|
||||
private MicrosoftDiContainer _container = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 测试注册单例实例的功能
|
||||
/// </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user