コード例 #1
0
 public OrderViewDataBuilder(IOriginRepository originRepository,
                             IDestinationRepository destinationRepository,
                             IPackageTypeSelectListBuilder packageTypeSelectListBuilder)
 {
     _originRepository = originRepository;
     _destinationRepository = destinationRepository;
     _packageTypeSelectListBuilder = packageTypeSelectListBuilder;
 }
コード例 #2
0
 public OrderViewDataBuilder(IOriginRepository originRepository,
                             IDestinationRepository destinationRepository,
                             IPackageTypeSelectListBuilder packageTypeSelectListBuilder)
 {
     _originRepository             = originRepository;
     _destinationRepository        = destinationRepository;
     _packageTypeSelectListBuilder = packageTypeSelectListBuilder;
 }
コード例 #3
0
 public ProductController(IProductRepository product, ICategoryRepository category, IImageRepository image, IOriginRepository origin, IBrandRepository brand, ITag tag)
 {
     _product  = product;
     _category = category;
     _image    = image;
     _origin   = origin;
     _brand    = brand;
     _tag      = tag;
 }
コード例 #4
0
        public void SetUp()
        {
            var unitOfWorkFactory = Substitute.For <IUnitOfWorkFactory>();
            var unitOfWork        = Substitute.For <IUnitOfWork>();

            unitOfWorkFactory.CreateUnitOfWork().Returns(unitOfWork);
            _originRepository = Substitute.For <IOriginRepository>();
            unitOfWork.Origins.Returns(_originRepository);
            _originService = new OriginService(unitOfWorkFactory);
        }
コード例 #5
0
ファイル: UnitOfWork.cs プロジェクト: quangphat/TmTech
 private void ResetRepositories()
 {
     _productRepository            = null;
     _categoryRepository           = null;
     _StaffRepository              = null;
     _companyRepository1           = null;
     _deputyRepository             = null;
     _usersRepository              = null;
     _userTypeRepository           = null;
     _userGroupRepository          = null;
     _permissionsRepository        = null;
     _poRepository                 = null;
     _poDetailRepository           = null;
     _quotationDetailRepository    = null;
     _quotationRepository          = null;
     _companyRepository1           = null;
     _deputyRepository             = null;
     _subCategoryRepository        = null;
     _seriesRepository             = null;
     _productStandardRepository    = null;
     _classProductRepository       = null;
     _classSafetyRepository        = null;
     _lampTypeRepository           = null;
     _bankBaseRepository           = null;
     _materialRepository           = null;
     _supplierRepository           = null;
     _planningRepository           = null;
     _planningDetailRepository     = null;
     _originRepository             = null;
     _unitRepository               = null;
     _gridviewRepository           = null;
     _deliveryRepository           = null;
     _paymentMethodRepository      = null;
     _gridviewRepository           = null;
     _projectBaseRepository        = null;
     _requestPaymentBaseRepository = null;
     _paymentRepository            = null;
     _approveLogRepository         = null;
     _debtDetailRepository         = null;
     _requestSentRepository        = null;
     _suggestionRepository         = null;
 }
コード例 #6
0
 public void SetUp()
 {
     _mockOriginRepository             = Mock.Create <IOriginRepository>();
     _mockDestinationRepository        = Mock.Create <IDestinationRepository>();
     _mockPackageTypeSelectListBuilder = Mock.Create <IPackageTypeSelectListBuilder>();
 }
コード例 #7
0
 public OriginController(IOriginRepository origin)
 {
     _origin = origin;
 }
コード例 #8
0
 public OriginService(IOriginRepository repository)
 {
     this.repository = repository;
 }
コード例 #9
0
 public OriginService(IOriginRepository originRepository, IProductService productService)
 {
     _originRepository = originRepository;
     _productService = productService;
 }
コード例 #10
0
 public void SetUp()
 {
     _mockOriginRepository = Mock.Create<IOriginRepository>();
     _mockDestinationRepository = Mock.Create<IDestinationRepository>();
     _mockPackageTypeSelectListBuilder = Mock.Create<IPackageTypeSelectListBuilder>();
 }
コード例 #11
0
 public OriginController(IOriginRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }