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)); }
public SimpleAuditing_Test() { _personAppService = Resolve <IPersonAppService>(); _asyncCompanyAppService = Resolve <AsyncCompanyAppService>(); Resolve <IAuditingConfiguration>().IsEnabledForAnonymousUsers = true; Resolve <IAuditingConfiguration>().SaveReturnValues = true; }
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; }
public PersonController( IPersonAppService personAppService, INotificationHandler <DomainNotification> notifications, IMediatorHandler mediator) : base(notifications, mediator) { _personAppService = personAppService; }
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)); }
public UserController(IOptions <JwtSettings> jwtSettings , IPersonAppService personAppService , IUserTokenAppService userTokenAppService ) { this._jwtSettings = jwtSettings.Value; this._personAppService = personAppService; this._userTokenAppService = userTokenAppService; }
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); }
public UserAppService(IMapper mapper, IPersonRepository personRepository, IPersonProfileRepository personProfileRepository, IPersonAppService personAppService) { _personRepository = personRepository; _personProfileRepository = personProfileRepository; _personAppService = personAppService; _mapper = mapper; }
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; }
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); }
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); }
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); }
public MainForm(IPersonAppService personAppService) { _personAppService = personAppService; InitializeComponent(); }
public PersonController(IPersonAppService personAppServices) { _personAppServices = personAppServices; }
public PersonController(IPersonAppService personAppService, INotificationHandler <DomainNotification> notifications, ILogger <PersonController> logger) : base(notifications, logger) { _personAppService = personAppService; _notifications = (DomainNotificationHandler)notifications; }
public SimpleAuditing_Test() { _personAppService = Resolve <IPersonAppService>(); Resolve <IAuditingConfiguration>().IsEnabledForAnonymousUsers = true; }
public PersonController(IPersonAppService personAppService, IUrlHelper urlHelper) { _personAppService = personAppService; _urlHelper = urlHelper; }
public PersonRedisController(IPersonAppServiceRedis personAppServiceRedis, IPersonAppService personAppService) { _personAppServiceRedis = personAppServiceRedis; _personAppService = personAppService; }
public PersonAppService_Tests() { _personAppService = Resolve<IPersonAppService>(); }
public PersonController( IPersonAppService personAppService, INotificationHandler <DomainNotification> notification) : base(notification) { _personAppService = personAppService; }
public PersonAppService_Tests() { InitializeData(); _personAppService = Resolve <IPersonAppService>(); }
public HomeController(IPersonAppService personAppService, ITaskAppService taskAppService) { _personAppService = personAppService; _taskAppService = taskAppService; }
public PhoneBookController(IPersonAppService personAppService) { _personAppService = personAppService; }
public SelectCourseController(IPersonAppService personAppService, ICourseAppService courseAppService, ISelectCourseAppService selectCourseAppService) { _personAppService = personAppService; _courseAppService = courseAppService; _selectCourseAppService = selectCourseAppService; }
public PersonController(IPersonAppService appService, NotificationContainer notificationContainer) { _appService = appService; _notificationContainer = notificationContainer; }
//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>(); }
public PersonController(IPersonAppService personDataService) { this._personDataService = personDataService; }
public AddressAppService(IRepository <Data.SecondTestModel.Address> repository, IPersonAppService personAppService) { _repository = repository; _personAppService = personAppService; }
public PersonController(IPersonAppService personAppService) { _personAppService = personAppService; }
public TMTasksController(ITMTaskAppService tMTaskAppService, IPersonAppService personAppService) { _tMTaskAppService = tMTaskAppService; _personAppService = personAppService; }
public PersonAppService_Tests() { _personAppService = Resolve <IPersonAppService>(); }
public SimpleAuditing_Test() { _personAppService = Resolve<IPersonAppService>(); Resolve<IAuditingConfiguration>().IsEnabledForAnonymousUsers = true; }
public PersonAppService_Tests() { _personAppService = LocalIocManager.Resolve<IPersonAppService>(); }