public OrderViewDataBuilder(IOriginRepository originRepository, IDestinationRepository destinationRepository, IPackageTypeSelectListBuilder packageTypeSelectListBuilder) { _originRepository = originRepository; _destinationRepository = destinationRepository; _packageTypeSelectListBuilder = packageTypeSelectListBuilder; }
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; }
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); }
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; }
public void SetUp() { _mockOriginRepository = Mock.Create <IOriginRepository>(); _mockDestinationRepository = Mock.Create <IDestinationRepository>(); _mockPackageTypeSelectListBuilder = Mock.Create <IPackageTypeSelectListBuilder>(); }
public OriginController(IOriginRepository origin) { _origin = origin; }
public OriginService(IOriginRepository repository) { this.repository = repository; }
public OriginService(IOriginRepository originRepository, IProductService productService) { _originRepository = originRepository; _productService = productService; }
public void SetUp() { _mockOriginRepository = Mock.Create<IOriginRepository>(); _mockDestinationRepository = Mock.Create<IDestinationRepository>(); _mockPackageTypeSelectListBuilder = Mock.Create<IPackageTypeSelectListBuilder>(); }
public OriginController(IOriginRepository repository, IMapper mapper) { _repository = repository; _mapper = mapper; }