public InvitationWriteCommand(
     IAlienRepository alienRepository,
     IEmployeeRepository employeeRepository,
     IInvitationRepository invitationRepository,
     IVisitDetailRepository visitDetailRepository,
     AlienWriteCommand alienWriteCommand,
     DomainContext domainContext)
 {
     _alienRepository       = alienRepository;
     _employeeRepository    = employeeRepository;
     _invitationRepository  = invitationRepository;
     _visitDetailRepository = visitDetailRepository;
     _alienWriteCommand     = alienWriteCommand;
     _domainContext         = domainContext;
 }
示例#2
0
        public AlienService(
            IContactService contactService,
            IPassportService passportService,
            IOrganizationService organizationService,
            IStateRegistrationService stateRegistrationService,
            IAlienRepository alienRepository)
        {
            Contract.Argument.IsNotNull(contactService, nameof(contactService));
            Contract.Argument.IsNotNull(passportService, nameof(passportService));
            Contract.Argument.IsNotNull(organizationService, nameof(organizationService));
            Contract.Argument.IsNotNull(stateRegistrationService, nameof(stateRegistrationService));
            Contract.Argument.IsNotNull(alienRepository, nameof(alienRepository));

            _contactService           = contactService;
            _passportService          = passportService;
            _organizationService      = organizationService;
            _stateRegistrationService = stateRegistrationService;
            _alienRepository          = alienRepository;
        }
示例#3
0
        public AlienReadCommand(
            IAlienRepository alienRepository,
            IReadCommand <ContactResult> contactReadCommand,
            IReadCommand <PassportResult> passportReadCommand,
            IReadCommand <OrganizationResult> organizationReadCommand,
            IReadCommand <StateRegistrationResult> stateRegistrationReadCommand)
        {
            Contract.Argument.IsNotNull(alienRepository, nameof(alienRepository));
            Contract.Argument.IsNotNull(contactReadCommand, nameof(contactReadCommand));
            Contract.Argument.IsNotNull(passportReadCommand, nameof(passportReadCommand));
            Contract.Argument.IsNotNull(organizationReadCommand, nameof(organizationReadCommand));
            Contract.Argument.IsNotNull(stateRegistrationReadCommand, nameof(stateRegistrationReadCommand));

            _alienRepository              = alienRepository;
            _contactReadCommand           = contactReadCommand;
            _passportReadCommand          = passportReadCommand;
            _organizationReadCommand      = organizationReadCommand;
            _stateRegistrationReadCommand = stateRegistrationReadCommand;
        }
示例#4
0
 public AlienController(IAlienRepository productRepository)
 {
     this.alienRepo = productRepository;
 }
示例#5
0
 public ViewAlienResponses ViewAlien(string name)
 {
     IAlienRepository repo = RepositoryFactory.CreateAlienRepo();
 }
示例#6
0
 public CheckService(ICheckRepository checkRepository, IAlienRepository alienRepository, IEstabelecimentoRepository estabelecimentoRepository)
 {
     _checkRepository           = checkRepository;
     _alienRepository           = alienRepository;
     _estabelecimentoRepository = estabelecimentoRepository;
 }
 public AlienServiceTest()
 {
     _alienRepository = Substitute.For <IAlienRepository>();
     _alienService    = new AlienService(_alienRepository);
 }
 public AlienService(IAlienRepository alienRepository)
 {
     _alienRepository = alienRepository;
 }