コード例 #1
0
        // private IValidatorStrategy<President> _Validator;
        // private ITestDataUtility _TestDataUtility;

        public SponsorController(ISponsorService Service,
                                 IOrphanService OrphanService,
                                 ILogger Log
                                 //, IValidatorStrategy<President> validator
                                 //  ITestDataUtility testDataUtility
                                 )
        {
            //      if (Service == null)
            //          throw new ArgumentNullException("service", "service is null.");

            //if (validator == null)
            //{
            //    throw new ArgumentNullException("validator", "Argument cannot be null.");
            //}

            //  _Validator = validator;
            _Service       = Service;
            _OrphanService = OrphanService;
            _Log           = Log;
            //  _TestDataUtility = testDataUtility;
        }
コード例 #2
0
 public HomeController(ISponsorService Service, IOrphanService OrphanService)
 {
     _SponsorService = Service;
     _OrphanService  = OrphanService;
 }