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