コード例 #1
0
 public LicensePlateCheckService(LicensePlateRepository suspectCarRepository)
 {
     if (suspectCarRepository == null)
     {
         throw new ArgumentNullException("suspectCarRepository");
     }
     _suspectCarRepository = suspectCarRepository;
 }
コード例 #2
0
 public FormSuspectCarQuery(LicensePlateRepository licensePlateRepository,
     IMessageBoxService messageBoxService)
     : this()
 {
     if (messageBoxService == null) throw new ArgumentNullException("messageBoxService");
     _licensePlateRepository = licensePlateRepository;
     _messageBoxService = messageBoxService;
 }
コード例 #3
0
        public SuspectCarFormPresenter(IMessageBoxService messageBoxService,
            ILicensePlateEventPublisher licensePlateEventPublisher,
            LicensePlateRepository licensePlateRepository)
        {
            if (messageBoxService == null) throw new ArgumentNullException("messageBoxService");
            if (licensePlateRepository == null) throw new ArgumentNullException("licensePlateRepository");

            _messageBoxService = messageBoxService;
            _licensePlateRepository = licensePlateRepository;
        }
コード例 #4
0
 public FormSuspectCarQuery(LicensePlateRepository licensePlateRepository,
                            IMessageBoxService messageBoxService)
     : this()
 {
     if (messageBoxService == null)
     {
         throw new ArgumentNullException("messageBoxService");
     }
     _licensePlateRepository = licensePlateRepository;
     _messageBoxService      = messageBoxService;
 }
コード例 #5
0
        public LicensePlateSearchPresenter(ILicenseplateSearchScreen screen, 
            IMessageBoxService messageBoxService,
            LicensePlateRepository repository)
        {
            if (screen == null) throw new ArgumentNullException("screen");
            if (messageBoxService == null) throw new ArgumentNullException("messageBoxService");
            if (repository == null) throw new ArgumentNullException("repository");

            _screen = screen;
            _messageBoxService = messageBoxService;
            _repository = repository;
        }
コード例 #6
0
        public SuspectCarFormPresenter(IMessageBoxService messageBoxService,
                                       ILicensePlateEventPublisher licensePlateEventPublisher,
                                       LicensePlateRepository licensePlateRepository)
        {
            if (messageBoxService == null)
            {
                throw new ArgumentNullException("messageBoxService");
            }
            if (licensePlateRepository == null)
            {
                throw new ArgumentNullException("licensePlateRepository");
            }

            _messageBoxService      = messageBoxService;
            _licensePlateRepository = licensePlateRepository;
        }
コード例 #7
0
        public LicensePlateSearchPresenter(ILicenseplateSearchScreen screen,
                                           IMessageBoxService messageBoxService,
                                           LicensePlateRepository repository)
        {
            if (screen == null)
            {
                throw new ArgumentNullException("screen");
            }
            if (messageBoxService == null)
            {
                throw new ArgumentNullException("messageBoxService");
            }
            if (repository == null)
            {
                throw new ArgumentNullException("repository");
            }

            _screen            = screen;
            _messageBoxService = messageBoxService;
            _repository        = repository;
        }
コード例 #8
0
 public LicensePlateCheckService(LicensePlateRepository suspectCarRepository)
 {
     if (suspectCarRepository == null) throw new ArgumentNullException("suspectCarRepository");
     _suspectCarRepository = suspectCarRepository;
 }