コード例 #1
0
 public PersonController(IPersonAppService iPersonAppService,
                         IRecordAppService iRecordAppService,
                         IFaceAppService iFaceAppService,
                         IEmotionAppService iEmotionAppService,
                         IReportAppService iReportAppService,
                         IPersonMapper iPersonMapper,
                         IRecordMapper iRecordMapper,
                         IEmotionMapper iEmotionMapper,
                         IReportMapper iReportMapper)
 {
     this.iPersonAppService = iPersonAppService ??
                              throw new ArgumentNullException(nameof(iPersonAppService));
     this.iRecordAppService = iRecordAppService ??
                              throw new ArgumentNullException(nameof(iRecordAppService));
     this.iFaceAppService = iFaceAppService ??
                            throw new ArgumentNullException(nameof(iFaceAppService));
     this.iEmotionAppService = iEmotionAppService ??
                               throw new ArgumentNullException(nameof(iEmotionAppService));
     this.iReportAppService = iReportAppService ??
                              throw new ArgumentNullException(nameof(iReportAppService));
     this.iPersonMapper = iPersonMapper ??
                          throw new ArgumentNullException(nameof(iPersonMapper));
     this.iRecordMapper = iRecordMapper ??
                          throw new ArgumentNullException(nameof(iRecordMapper));
     this.iEmotionMapper = iEmotionMapper ??
                           throw new ArgumentNullException(nameof(iEmotionMapper));
     this.iReportMapper = iReportMapper ??
                          throw new ArgumentNullException(nameof(iReportMapper));
 }
コード例 #2
0
 public SimpleAuditing_Test()
 {
     _personAppService       = Resolve <IPersonAppService>();
     _asyncCompanyAppService = Resolve <AsyncCompanyAppService>();
     Resolve <IAuditingConfiguration>().IsEnabledForAnonymousUsers = true;
     Resolve <IAuditingConfiguration>().SaveReturnValues           = true;
 }
コード例 #3
0
ファイル: MainWindow.xaml.cs プロジェクト: lgy2014/AutoSignin
        public MainWindow(IPersonAppService personAppService)
        {
            //_personAppService = personAppService;
            InitializeComponent();

            timer.Tick    += Timer_Tick;
            timer.Interval = 8000;

            dpicker.SelectedDate = DateTime.Now;

            //read parameter
            StringBuilder param = new StringBuilder(99);

            IniHelper.GetPrivateProfileString("main", "url", "", param, 199, IniHelper.strFilePath);
            txtUrl.Text = param.ToString();
            param.Clear();
            IniHelper.GetPrivateProfileString("main", "cookie", "", param, 199, IniHelper.strFilePath);
            txtCookie.Text = param.ToString();

            //设置IE版本
            IEVersion.BrowserEmulationSet();

            web.ScriptErrorsSuppressed = true;
            host.Child = web;
            grid.Children.Add(host);

            host.SetValue(Grid.RowProperty, 1);
            host.SetValue(Grid.ColumnProperty, 2);

            InitialTray();
            Title += "----:" + Thread.CurrentThread.ManagedThreadId;
        }
コード例 #4
0
 public PersonController(
     IPersonAppService personAppService,
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator) : base(notifications, mediator)
 {
     _personAppService = personAppService;
 }
コード例 #5
0
 public EmailReportAppService(IReportAppService iReportAppService,
                              IPersonAppService iPersonAppService, IOptionsMonitor <EmailReportingOptions> options)
 {
     this.iReportAppService = iReportAppService ?? throw new ArgumentNullException(nameof(iReportAppService));
     this.iPersonAppService = iPersonAppService ?? throw new ArgumentNullException(nameof(iPersonAppService));
     this.options           = options ?? throw new ArgumentNullException(nameof(options));
     this.mandrillApi       = new Lazy <MandrillApi>(() => new MandrillApi(this.options.CurrentValue.MandrillKey));
 }
コード例 #6
0
 public UserController(IOptions <JwtSettings> jwtSettings
                       , IPersonAppService personAppService
                       , IUserTokenAppService userTokenAppService
                       )
 {
     this._jwtSettings         = jwtSettings.Value;
     this._personAppService    = personAppService;
     this._userTokenAppService = userTokenAppService;
 }
コード例 #7
0
        public TasksController(ITaskAppService taskAppService, IProjectAppService projectAppService, IPersonAppService personAppService, IHttpContextAccessor accessor)
        {
            this._taskAppService    = taskAppService;
            this._projectAppService = projectAppService;
            this._personAppService  = personAppService;
            this._accessor          = accessor;

            Models.SeedData.Initialize(taskAppService);
        }
コード例 #8
0
 public UserAppService(IMapper mapper,
                       IPersonRepository personRepository,
                       IPersonProfileRepository personProfileRepository,
                       IPersonAppService personAppService)
 {
     _personRepository        = personRepository;
     _personProfileRepository = personProfileRepository;
     _personAppService        = personAppService;
     _mapper = mapper;
 }
コード例 #9
0
ファイル: DoctorController.cs プロジェクト: peleverton/gore
 public DoctorController(IDoctorAppService doctorAppService,
                         IPersonAppService personAppService,
                         IAddressAppService addressAppService,
                         IBloodTypeAppService bloodTypeAppService,
                         IApiClientService apiClientService,
                         INotificationHandler <DomainNotification> notifications) : base(notifications)
 {
     _doctorAppService    = doctorAppService;
     _personAppService    = personAppService;
     _addressAppService   = addressAppService;
     _bloodTypeAppService = bloodTypeAppService;
     _apiClientService    = apiClientService;
 }
コード例 #10
0
        public void SetUp()

        {
            mockPersonRepository           = new Mock <IPersonRepository>();
            mockUsertokenReposirity        = new Mock <IUserTokenRepository>();
            mockActivityReposirity         = new Mock <IActivityRepository>();
            sutTokenAppservice             = new TokenAppService(mockUsertokenReposirity.Object);
            mockRoleDistributionRepository = new Mock <IRoleDistributionRepository>();
            sutIPersonAppService           = new PersonAppService(mockPersonRepository.Object, mockUsertokenReposirity.Object,
                                                                  mockActivityReposirity.Object, sutTokenAppservice, mockRoleDistributionRepository.Object);
            sutPersonAppservice = new PersonAppService(mockPersonRepository.Object, mockUsertokenReposirity.Object,
                                                       mockActivityReposirity.Object, sutTokenAppservice, mockRoleDistributionRepository.Object);
        }
コード例 #11
0
        public PersonAppServiceTests()
        {
            _personAppService = Resolve <IPersonAppService>();

            _person = new Person
            {
                Id   = 1,
                Name = "John Doe"
            };

            // Setup
            UsingDbContext <ArchitectureDbContext>(context => context.People.Add(_person));
        }
        public PersonAppService_Tests_With_Mocks()
        {
            //Fake repository will contain 2 people
            var people = new List<Person>
                         {
                             new Person {Name = "John Nash"},
                             new Person {Name = "Forrest Gump"}
                         };

            //Create the fake person repository
            var personRepository = Substitute.For<IRepository<Person>>();

            //Arrange GetAll() method to return the list above
            personRepository.GetAllListAsync().Returns(Task.FromResult(people));

            //Create PersonAppService by providing the fake repository
            _personAppService = new PersonAppService(personRepository);
        }
コード例 #13
0
        public PersonAppService_Tests_With_Mocks()
        {
            //Fake repository will contain 2 people
            var people = new List <Person>
            {
                new Person {
                    Name = "John Nash"
                },
                new Person {
                    Name = "Forrest Gump"
                }
            };

            //Create the fake person repository
            var personRepository = Substitute.For <IRepository <Person> >();

            //Arrange GetAll() method to return the list above
            personRepository.GetAllListAsync().Returns(Task.FromResult(people));

            //Create PersonAppService by providing the fake repository
            _personAppService = new PersonAppService(personRepository);
        }
コード例 #14
0
 public MainForm(IPersonAppService personAppService)
 {
     _personAppService = personAppService;
     InitializeComponent();
 }
コード例 #15
0
 public PersonController(IPersonAppService personAppServices)
 {
     _personAppServices = personAppServices;
 }
コード例 #16
0
 public PersonController(IPersonAppService personAppService, INotificationHandler <DomainNotification> notifications, ILogger <PersonController> logger) : base(notifications, logger)
 {
     _personAppService = personAppService;
     _notifications    = (DomainNotificationHandler)notifications;
 }
コード例 #17
0
ファイル: SimpleAuditing_Test.cs プロジェクト: zz110/ABP
 public SimpleAuditing_Test()
 {
     _personAppService = Resolve <IPersonAppService>();
     Resolve <IAuditingConfiguration>().IsEnabledForAnonymousUsers = true;
 }
コード例 #18
0
 public PersonController(IPersonAppService personAppService, IUrlHelper urlHelper)
 {
     _personAppService = personAppService;
     _urlHelper        = urlHelper;
 }
コード例 #19
0
 public PersonRedisController(IPersonAppServiceRedis personAppServiceRedis, IPersonAppService personAppService)
 {
     _personAppServiceRedis = personAppServiceRedis;
     _personAppService      = personAppService;
 }
コード例 #20
0
 public PersonAppService_Tests()
 {
     _personAppService = Resolve<IPersonAppService>();
 }
コード例 #21
0
 public PersonController(
     IPersonAppService personAppService,
     INotificationHandler <DomainNotification> notification) : base(notification)
 {
     _personAppService = personAppService;
 }
コード例 #22
0
 public PersonAppService_Tests()
 {
     InitializeData();
     _personAppService = Resolve <IPersonAppService>();
 }
コード例 #23
0
 public HomeController(IPersonAppService personAppService,
                       ITaskAppService taskAppService)
 {
     _personAppService = personAppService;
     _taskAppService = taskAppService;
 }
コード例 #24
0
 public PhoneBookController(IPersonAppService personAppService)
 {
     _personAppService = personAppService;
 }
コード例 #25
0
 public SelectCourseController(IPersonAppService personAppService, ICourseAppService courseAppService, ISelectCourseAppService selectCourseAppService)
 {
     _personAppService       = personAppService;
     _courseAppService       = courseAppService;
     _selectCourseAppService = selectCourseAppService;
 }
コード例 #26
0
 public PersonController(IPersonAppService appService, NotificationContainer notificationContainer)
 {
     _appService            = appService;
     _notificationContainer = notificationContainer;
 }
コード例 #27
0
 //public HomeController(ITestAppService testAppService, ITestAutofacAppService testAutofacAppService,IPersonAppService personAppService)
 //{
 //    _testAppService = testAppService;
 //    _testAutofacAppService = testAutofacAppService;
 //    _personAppService = personAppService;
 //    var ty = typeof(HomeController);
 //    var ty2 = ty.GetTypeInfo().IsAbstract;
 //}
 public HomeController(IPersonAppService personAppService, IServiceProvider serviceProvider, IAddressAppService addressAppService)
 {
     _personAppService  = personAppService;
     _serviceProvider   = serviceProvider;
     _addressAppService = addressAppService;
 }
コード例 #28
0
 public PersonAppService_Tests()
 {
     InitializeData();
     _personAppService = LocalIocManager.Resolve <IPersonAppService>();
 }
コード例 #29
0
 public PersonController(IPersonAppService personDataService)
 {
     this._personDataService = personDataService;
 }
コード例 #30
0
 public AddressAppService(IRepository <Data.SecondTestModel.Address> repository, IPersonAppService personAppService)
 {
     _repository       = repository;
     _personAppService = personAppService;
 }
コード例 #31
0
 public PersonController(IPersonAppService personAppService)
 {
     _personAppService = personAppService;
 }
コード例 #32
0
 public TMTasksController(ITMTaskAppService tMTaskAppService, IPersonAppService personAppService)
 {
     _tMTaskAppService = tMTaskAppService;
     _personAppService = personAppService;
 }
コード例 #33
0
 public PersonAppService_Tests()
 {
     _personAppService = Resolve <IPersonAppService>();
 }
コード例 #34
0
ファイル: MainForm.cs プロジェクト: lgy2014/AutoSignin
 public MainForm(IPersonAppService personAppService)
 {
     _personAppService = personAppService;
     InitializeComponent();
 }
コード例 #35
0
ファイル: SimpleAuditing_Test.cs プロジェクト: RichieYang/ABP
 public SimpleAuditing_Test()
 {
     _personAppService = Resolve<IPersonAppService>();
     Resolve<IAuditingConfiguration>().IsEnabledForAnonymousUsers = true;
 }
コード例 #36
0
 public PersonAppService_Tests()
 {
     _personAppService = LocalIocManager.Resolve<IPersonAppService>();
 }