Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public SimpleAuditing_Test()
 {
     _personAppService       = Resolve <IPersonAppService>();
     _asyncCompanyAppService = Resolve <AsyncCompanyAppService>();
     Resolve <IAuditingConfiguration>().IsEnabledForAnonymousUsers = true;
     Resolve <IAuditingConfiguration>().SaveReturnValues           = true;
 }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 public PersonController(
     IPersonAppService personAppService,
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator) : base(notifications, mediator)
 {
     _personAppService = personAppService;
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 6
0
 public UserController(IOptions <JwtSettings> jwtSettings
                       , IPersonAppService personAppService
                       , IUserTokenAppService userTokenAppService
                       )
 {
     this._jwtSettings         = jwtSettings.Value;
     this._personAppService    = personAppService;
     this._userTokenAppService = userTokenAppService;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 8
0
 public UserAppService(IMapper mapper,
                       IPersonRepository personRepository,
                       IPersonProfileRepository personProfileRepository,
                       IPersonAppService personAppService)
 {
     _personRepository        = personRepository;
     _personProfileRepository = personProfileRepository;
     _personAppService        = personAppService;
     _mapper = mapper;
 }
Ejemplo n.º 9
0
 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;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 14
0
 public MainForm(IPersonAppService personAppService)
 {
     _personAppService = personAppService;
     InitializeComponent();
 }
Ejemplo n.º 15
0
 public PersonController(IPersonAppService personAppServices)
 {
     _personAppServices = personAppServices;
 }
 public PersonController(IPersonAppService personAppService, INotificationHandler <DomainNotification> notifications, ILogger <PersonController> logger) : base(notifications, logger)
 {
     _personAppService = personAppService;
     _notifications    = (DomainNotificationHandler)notifications;
 }
Ejemplo n.º 17
0
 public SimpleAuditing_Test()
 {
     _personAppService = Resolve <IPersonAppService>();
     Resolve <IAuditingConfiguration>().IsEnabledForAnonymousUsers = true;
 }
 public PersonController(IPersonAppService personAppService, IUrlHelper urlHelper)
 {
     _personAppService = personAppService;
     _urlHelper        = urlHelper;
 }
Ejemplo n.º 19
0
 public PersonRedisController(IPersonAppServiceRedis personAppServiceRedis, IPersonAppService personAppService)
 {
     _personAppServiceRedis = personAppServiceRedis;
     _personAppService      = personAppService;
 }
Ejemplo n.º 20
0
 public PersonAppService_Tests()
 {
     _personAppService = Resolve<IPersonAppService>();
 }
 public PersonController(
     IPersonAppService personAppService,
     INotificationHandler <DomainNotification> notification) : base(notification)
 {
     _personAppService = personAppService;
 }
 public PersonAppService_Tests()
 {
     InitializeData();
     _personAppService = Resolve <IPersonAppService>();
 }
Ejemplo n.º 23
0
 public HomeController(IPersonAppService personAppService,
                       ITaskAppService taskAppService)
 {
     _personAppService = personAppService;
     _taskAppService = taskAppService;
 }
Ejemplo n.º 24
0
 public PhoneBookController(IPersonAppService personAppService)
 {
     _personAppService = personAppService;
 }
Ejemplo n.º 25
0
 public SelectCourseController(IPersonAppService personAppService, ICourseAppService courseAppService, ISelectCourseAppService selectCourseAppService)
 {
     _personAppService       = personAppService;
     _courseAppService       = courseAppService;
     _selectCourseAppService = selectCourseAppService;
 }
Ejemplo n.º 26
0
 public PersonController(IPersonAppService appService, NotificationContainer notificationContainer)
 {
     _appService            = appService;
     _notificationContainer = notificationContainer;
 }
Ejemplo n.º 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;
 }
 public PersonAppService_Tests()
 {
     InitializeData();
     _personAppService = LocalIocManager.Resolve <IPersonAppService>();
 }
Ejemplo n.º 29
0
 public PersonController(IPersonAppService personDataService)
 {
     this._personDataService = personDataService;
 }
Ejemplo n.º 30
0
 public AddressAppService(IRepository <Data.SecondTestModel.Address> repository, IPersonAppService personAppService)
 {
     _repository       = repository;
     _personAppService = personAppService;
 }
Ejemplo n.º 31
0
 public PersonController(IPersonAppService personAppService)
 {
     _personAppService = personAppService;
 }
Ejemplo n.º 32
0
 public TMTasksController(ITMTaskAppService tMTaskAppService, IPersonAppService personAppService)
 {
     _tMTaskAppService = tMTaskAppService;
     _personAppService = personAppService;
 }
Ejemplo n.º 33
0
 public PersonAppService_Tests()
 {
     _personAppService = Resolve <IPersonAppService>();
 }
Ejemplo n.º 34
0
 public MainForm(IPersonAppService personAppService)
 {
     _personAppService = personAppService;
     InitializeComponent();
 }
Ejemplo n.º 35
0
 public SimpleAuditing_Test()
 {
     _personAppService = Resolve<IPersonAppService>();
     Resolve<IAuditingConfiguration>().IsEnabledForAnonymousUsers = true;
 }
 public PersonAppService_Tests()
 {
     _personAppService = LocalIocManager.Resolve<IPersonAppService>();
 }