示例#1
0
 public ItContractServiceTest()
 {
     _contractRepository      = new Mock <IItContractRepository>();
     _economyStreamRepository = new Mock <IGenericRepository <EconomyStream> >();
     _transactionManager      = new Mock <ITransactionManager>();
     _domainEvents            = new Mock <IDomainEvents>();
     _authorizationContext    = new Mock <IAuthorizationContext>();
     _referenceService        = new Mock <IReferenceService>();
     _logger = new Mock <ILogger>();
     _contractDataProcessingRegistrationAssignmentService = new Mock <IContractDataProcessingRegistrationAssignmentService>();
     _sut = new ItContractService(
         _contractRepository.Object,
         _economyStreamRepository.Object,
         _referenceService.Object,
         _transactionManager.Object,
         _domainEvents.Object,
         _authorizationContext.Object,
         _logger.Object,
         _contractDataProcessingRegistrationAssignmentService.Object);
 }
 public ContractController(ItContractService service)
 {
     _service = service;
 }