コード例 #1
0
 /// <summary>
 /// 测试初始化
 /// </summary>
 public DCRepositoriesServiceTest()
 {
     _scope = Ioc.BeginScope();
     _dCRepositoriesRepository = _scope.Create <IDCRepositoriesRepository>();
     _dCRepositoriesService    = _scope.Create <IDCRepositoriesService>();
     _dCRepositoriesDto        = DCRepositoriesDtoTest.Create();
 }
コード例 #2
0
 /// <summary>
 /// 初始化仓库表服务
 /// </summary>
 /// <param name="unitOfWork">工作单元</param>
 /// <param name="dCRepositoriesRepository">仓库表仓储</param>
 public DCRepositoriesService(IGitDCUnitOfWork unitOfWork, IDCRepositoriesRepository dCRepositoriesRepository)
     : base(unitOfWork, dCRepositoriesRepository)
 {
     DCRepositoriesRepository = dCRepositoriesRepository;
 }