public Genus() { InitializeComponent(); familyService = new FamilyService("Context"); family = familyService.GetAll(); FamilyName.DataContext = family; }
public FamilyController(IFamilyService services, IMapper mapper, ISystemAuditService systemAuditService, IHttpContextAccessor accessor) { _services = services; _mapper = mapper; _systemAuditService = systemAuditService; _accessor = accessor; }
public virtual async void TestDelete() { var builder = new WebHostBuilder() .UseEnvironment("Production") .UseStartup <TestStartup>(); TestServer testServer = new TestServer(builder); var client = new ApiClient(testServer.CreateClient()); client.SetBearerToken(JWTTestHelper.GenerateBearerToken()); ApplicationDbContext context = testServer.Host.Services.GetService(typeof(ApplicationDbContext)) as ApplicationDbContext; IFamilyService service = testServer.Host.Services.GetService(typeof(IFamilyService)) as IFamilyService; var model = new ApiFamilyServerRequestModel(); model.SetProperties("B", "B", "B", "B", "B"); CreateResponse <ApiFamilyServerResponseModel> createdResponse = await service.Create(model); createdResponse.Success.Should().BeTrue(); ActionResponse deleteResult = await client.FamilyDeleteAsync(2); deleteResult.Success.Should().BeTrue(); ApiFamilyServerResponseModel verifyResponse = await service.Get(2); verifyResponse.Should().BeNull(); }
public Family() { InitializeComponent(); familyService = new FamilyService("Context"); family = familyService.GetAll(); FamilyBox.DataContext = family; }
public static IFamilyService BuildFamilyService() { if (family_Service == null) { family_Service = new FamilyService(); } return family_Service; }
public static IFamilyService BuildFamilyService() { if (family_Service == null) { family_Service = new FamilyService(); } return(family_Service); }
public FamilyController() { familyService = ServiceBuilder.BuildFamilyService(); paginate = new Paginate() { PageSize = GLB.familyPerPageCount }; }
/// <summary> /// </summary> /// <param name="bankAuthorizeService">Bank authorize service</param> /// <param name="currentUserService">Current user service</param> /// <param name="bankService">Bank service</param> public NonPlaidBankAuthorizationController(IBankAuthorizeService bankAuthorizeService, ICurrentUserService currentUserService, IBankService bankService, IFamilyService FamilyService) { _bankAuthorizeService = bankAuthorizeService; _currentUserService = currentUserService; _bankService = bankService; _familyService = FamilyService; }
public FamiliesController(Context context, UserManager <CalendarUser> userManager, IFamilyService familyService) { _context = context; _familyService = familyService; _userManager = userManager; }
public CustomerController(UserManager <MyUser> userManager, ICustomerService customerService, IFamilyService familyService, ITicketService ticketService, IDoctorBasicService doctorService, IBlockService blockService) { _userManager = userManager; _customerService = customerService; _familyService = familyService; _ticketService = ticketService; _doctorService = doctorService; _blockService = blockService; }
public FamilyController( IFamilyService familyService, IMapper mapper, IFamilyQueryService familyQueryService) { _familyService = familyService; _mapper = mapper; _familyQueryService = familyQueryService; }
public ProductController(ILogger <ProductController> logger, IProductService productService, IFamilyService familyService, ICatalogueService catalogueService, IBrandService brandService) { _logger = logger; _productService = productService; _familyService = familyService; _catalogueService = catalogueService; _brandService = brandService; }
public FamilyController(IFamilyService familyService, IUnitOfWork unitOfWork, IMapper mapper) { CheckArgument.CheckForNull(familyService, nameof(familyService)); CheckArgument.CheckForNull(unitOfWork, nameof(unitOfWork)); CheckArgument.CheckForNull(mapper, nameof(mapper)); this.familyService = familyService; this.unitOfWork = unitOfWork; this.mapper = mapper; }
public TicketController(UserManager <MyUser> userManager, ITicketService ticketService, IBlockService blockService, IFamilyService familyService, ICustomerService customerService, IDoctorBasicService doctorService, IHubContext <CenterHub> hubContext) { _userManager = userManager; _ticketService = ticketService; _blockService = blockService; _familyService = familyService; _customerService = customerService; _doctorService = doctorService; _hubContext = hubContext; }
public IndividualController() { var cache = Util.CreateCacheProvider(); var unitOfWork = Util.CreateUnitOfWork(cache); var serviceFactory = new FamilyTreeServiceFactory(unitOfWork, cache); _factService = serviceFactory.CreateFactService(); _familyService = serviceFactory.CreateFamilyService(); _individualService = serviceFactory.CreateIndividualService(); _treeService = serviceFactory.CreateTreeService(); }
public AccountService(IRepository repository, ICryptoService cryptoService, IFamilyService familyService, ICurrentUserService currentUserService, ITextMessageService textMessageService, IEmailTemplateService emailTemplateService, IEmailService emailService, ISubscriptionService subscriptionService) : base(repository) { _cryptoService = cryptoService; _familyService = familyService; _currentUserService = currentUserService; _textMessageService = textMessageService; _emailTemplateService = emailTemplateService; _emailService = emailService; _subscriptionService = subscriptionService; }
public IndividualController() { var cache = Util.CreateCacheProvider(); var unitOfWork = Util.CreateUnitOfWork(cache); var serviceFactory = new FamilyTreeServiceFactory(unitOfWork, cache); _factService = serviceFactory.CreateFactService(); _familyService = serviceFactory.CreateFamilyService(); _individualService = serviceFactory.CreateIndividualService(); _treeService = serviceFactory.CreateTreeService(); }
public AdminController(ILogger <AdminController> logger, IBrandService brandService, ICountryService countryService, IFamilyService familyService, ICatalogueService catalogueService, IHostingEnvironment appEnvironment) { _logger = logger; _brandService = brandService; _countryService = countryService; _familyService = familyService; _catalogueService = catalogueService; _appEnvironment = appEnvironment; }
public FamilyController( IFamilyService familyService, IFamilyRepository familyRepository, IOrderRepository orderRepository, PaginationConfiguration paginationConfiguration) { _familyService = familyService; _familyRepository = familyRepository; _orderRepository = orderRepository; _paginationConfiguration = paginationConfiguration; }
public EventsController(IEventService eventService, SmsController smsService, FamiliesController famControlService, IFamilyService familyService, UserManager <CalendarUser> userManager) { _eventService = eventService; _smsService = smsService; _famControlService = famControlService; _userManager = userManager; _familyService = familyService; }
public AbstractFamilyController( ApiSettings settings, ILogger <AbstractFamilyController> logger, ITransactionCoordinator transactionCoordinator, IFamilyService familyService, IApiFamilyModelMapper familyModelMapper ) : base(settings, logger, transactionCoordinator) { this.FamilyService = familyService; this.FamilyModelMapper = familyModelMapper; }
/// <summary> /// Ctor /// </summary> /// <param name="repository">Repository</param> public SmsBotService(IRepository repository, IFamilyService familyService, IChoreService choreService, IAppSettingsService appSettingsService, IEarningsService earningsService, IRecurringChoreService recurringChoreService, ITextMessageService textMessageService, ISMSApprovalService smsApprovalService) : base(repository) { _familyService = familyService; _choreService = choreService; _appSettingsService = appSettingsService; _earningsService = earningsService; _recurringChoreService = recurringChoreService; _textMessageService = textMessageService; _smsApprovalService = smsApprovalService; }
/// <summary> /// Ctor /// </summary> /// <param name="repository">Repository</param> public SpendService(IRepository repository, IGyftService gyftService, ICurrentUserService currentUserService, IFamilyService familyService, IEarningsService earningsService, ITextMessageService textMessageService, ITransactionService transactionService, IBankService bankService, ISMSApprovalHistory smsApprovalHistory) : base(repository) { _gyftService = gyftService; _currentUserService = currentUserService; _familyService = familyService; _earningsService = earningsService; _textMessageService = textMessageService; _transactionService = transactionService; _bankService = bankService; _smsApprovalHistory = smsApprovalHistory; }
public CharityService(IRepository repository, ICurrentUserService currentUserService, ITransactionService transactionService, IEarningsService earningsService, IBankService bankService, ITextMessageService textMessageService, IAppSettingsService appSettingsService, ISMSApprovalHistory smsApprovalHistory, IFamilyService familyService) : base(repository) { _currentUserService = currentUserService; _transactionService = transactionService; _earningsService = earningsService; _bankService = bankService; _textMessageService = textMessageService; _appSettingsService = appSettingsService; _smsApprovalHistory = smsApprovalHistory; _familyService = familyService; }
/// <summary> /// Ctor /// </summary> /// <param name="repository"></param> /// <param name="stockPileService"></param> /// <param name="currentUserService"></param> /// <param name="familyService"></param> /// <param name="textMessageService"></param> /// <param name="transactionService"></param> /// <param name="earningsService"></param> public SaveService(IRepository repository, IStockPileService stockPileService, ICurrentUserService currentUserService, IFamilyService familyService, ITextMessageService textMessageService, IEarningsService earningsService, ISMSApprovalHistory smsApprovalHistory, ITransactionService transactionService, IBankService bankService) : base(repository) { _stockPileService = stockPileService; _currentUserService = currentUserService; _familyService = familyService; _textMessageService = textMessageService; _earningsService = earningsService; _smsApprovalHistory = smsApprovalHistory; _transactionService = transactionService; _bankService = bankService; }
public NotificationService(IRepository _repository, ITextMessageService textMessageService, IEmailTemplateService emailTemplateService, IEmailService emailService, IEmailHistoryService emailHistoryService, ISMSApprovalHistory smsApprovalHistory, IFamilyService familyService, IChoreService choreService, IEarningsService earningServices) : base(_repository) { _textMessageService = textMessageService; _emailTemplateService = emailTemplateService; _emailService = emailService; _emailHistoryService = emailHistoryService; _smsApprovalHistory = smsApprovalHistory; _familyService = familyService; _choreService = choreService; _earningServices = earningServices; }
/// <summary> /// Subscription Service /// </summary> /// <param name="repository">The repository</param> /// <param name="currentUserService">The current user service</param> /// <param name="transactionService">The transaction service</param> /// <param name="bankAuthorizeService">The bank authorization service</param> /// <param name="emailTemplateService">The email template service</param> /// <param name="emailService">The email service</param> public SubscriptionService(IRepository repository, ICurrentUserService currentUserService, ITransactionService transactionService, IBankAuthorizeService bankAuthorizeService, IEmailTemplateService emailTemplateService, IEmailService emailService, IFamilyService familyService, IEarningsService earningsService, IEmailHistoryService emailHistoryService, IBankService bankService) : base(repository) { _currentUserService = currentUserService; _transactionService = transactionService; _bankAuthorizeService = bankAuthorizeService; _emailTemplateService = emailTemplateService; _emailService = emailService; _familyService = familyService; _earningsService = earningsService; _emailHistoryService = emailHistoryService; _bankService = bankService; }
public MainWindowViewModel(IFamilyService familyService, IUIVisualizerService uiVisualizerService, IMessageService messageService) { Argument.IsNotNull(() => familyService); Argument.IsNotNull(() => uiVisualizerService); Argument.IsNotNull(() => messageService); _uiVisualizerService = uiVisualizerService; _messageService = messageService; _familyService = familyService; AddFamily = new TaskCommand(OnAddFamilyExecuteAsync); EditFamily = new TaskCommand(OnEditFamilyExecuteAsync, OnEditFamilyCanExecute); RemoveFamily = new TaskCommand(OnRemoveFamilyExecuteAsync, OnRemoveFamilyCanExecute); }
public PostService( IRequestProvider requestProvider, IIdentityUtilService identityUtilService, IGroupsService groupsService, IPostPublicityScopeFactory postPublicityScopeFactory, ITeamMemberService teamMemberService, IFamilyService familyService) { _requestProvider = requestProvider; _identityUtilService = identityUtilService; _groupsService = groupsService; _postPublicityScopeFactory = postPublicityScopeFactory; _teamMemberService = teamMemberService; _familyService = familyService; }
/// <summary> /// Ctor /// </summary> /// <param name="repository">Repository</param> public BankAuthorizeService(IRepository repository, ICurrentUserService currentUserService, ISignUpProgressService signUpProgressService, IAppSettingsService appSettingsService, ICoreProService coreproService, IFamilyService familyService, IBankService bankService, IPlaidService plaidService, IEmailService emailService, IEmailTemplateService emailTemplateService, IEmailHistoryService emailHistoryService) : base(repository) { _currentUserService = currentUserService; _signUpProgressService = signUpProgressService; _appSettingsService = appSettingsService; _coreproService = coreproService; _familyService = familyService; _bankService = bankService; _plaidService = plaidService; _emailService = emailService; _emailTemplateService = emailTemplateService; _emailHistoryService = emailHistoryService; }
public FamilyController(IFamilyService familyService, IUserService userService, IFamilyViewModelService familyVMService, UserManager <ApplicationUser> userManager, IEmailSender emailSender, ILogger <FamilyController> logger ) { _familyService = familyService; _userService = userService; _familyVMService = familyVMService; _userManager = userManager; _emailSender = emailSender; _logger = logger; }
public FamilyController( ApiSettings settings, ILogger <FamilyController> logger, ITransactionCoordinator transactionCoordinator, IFamilyService familyService, IApiFamilyServerModelMapper familyModelMapper ) : base(settings, logger, transactionCoordinator) { this.FamilyService = familyService; this.FamilyModelMapper = familyModelMapper; this.BulkInsertLimit = 250; this.MaxLimit = 1000; this.DefaultLimit = 250; }
public FamilyTreeServiceFactory(IUnitOfWork unitOfWork, ICacheProvider cache) { Requires.NotNull(unitOfWork); Requires.NotNull(cache); _citationService = new CitationService(unitOfWork); _familyService = new FamilyService(unitOfWork); _individualService = new IndividualService(unitOfWork); _factService = new FactService(unitOfWork); _multimediaService = new MultimediaLinkService(unitOfWork); _noteService = new NoteService(unitOfWork); _repositoryService = new RepositoryService(unitOfWork); _sourceService = new SourceService(unitOfWork); _treeService = new TreeService(unitOfWork); }
public FamilyController() { familyService = ServiceBuilder.BuildFamilyService(); paginate = new Paginate() { PageSize = GLB.familyPerPageCount }; }