public Genus()
 {
     InitializeComponent();
     familyService          = new FamilyService("Context");
     family                 = familyService.GetAll();
     FamilyName.DataContext = family;
 }
Ejemplo n.º 2
0
 public FamilyController(IFamilyService services, IMapper mapper, ISystemAuditService systemAuditService, IHttpContextAccessor accessor)
 {
     _services           = services;
     _mapper             = mapper;
     _systemAuditService = systemAuditService;
     _accessor           = accessor;
 }
Ejemplo n.º 3
0
        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;
 }
Ejemplo n.º 5
0
 public static IFamilyService BuildFamilyService()
 {
     if (family_Service == null)
     {
         family_Service = new FamilyService();
     }
     return family_Service;
 }
Ejemplo n.º 6
0
 public static IFamilyService BuildFamilyService()
 {
     if (family_Service == null)
     {
         family_Service = new FamilyService();
     }
     return(family_Service);
 }
Ejemplo n.º 7
0
 public FamilyController()
 {
     familyService = ServiceBuilder.BuildFamilyService();
     paginate      = new Paginate()
     {
         PageSize = GLB.familyPerPageCount
     };
 }
Ejemplo n.º 8
0
        /// <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;
        }
Ejemplo n.º 9
0
 public FamiliesController(Context context,
                           UserManager <CalendarUser> userManager,
                           IFamilyService familyService)
 {
     _context       = context;
     _familyService = familyService;
     _userManager   = userManager;
 }
Ejemplo n.º 10
0
 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;
 }
Ejemplo n.º 11
0
 public FamilyController(
     IFamilyService familyService,
     IMapper mapper,
     IFamilyQueryService familyQueryService)
 {
     _familyService      = familyService;
     _mapper             = mapper;
     _familyQueryService = familyQueryService;
 }
Ejemplo n.º 12
0
 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;
        }
Ejemplo n.º 14
0
 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();
 }
Ejemplo n.º 16
0
 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;
 }
Ejemplo n.º 17
0
        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();
        }
Ejemplo n.º 18
0
 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;
 }
Ejemplo n.º 19
0
 public FamilyController(
     IFamilyService familyService,
     IFamilyRepository familyRepository,
     IOrderRepository orderRepository,
     PaginationConfiguration paginationConfiguration)
 {
     _familyService           = familyService;
     _familyRepository        = familyRepository;
     _orderRepository         = orderRepository;
     _paginationConfiguration = paginationConfiguration;
 }
Ejemplo n.º 20
0
 public EventsController(IEventService eventService,
                         SmsController smsService,
                         FamiliesController famControlService,
                         IFamilyService familyService,
                         UserManager <CalendarUser> userManager)
 {
     _eventService      = eventService;
     _smsService        = smsService;
     _famControlService = famControlService;
     _userManager       = userManager;
     _familyService     = familyService;
 }
Ejemplo n.º 21
0
 public AbstractFamilyController(
     ApiSettings settings,
     ILogger <AbstractFamilyController> logger,
     ITransactionCoordinator transactionCoordinator,
     IFamilyService familyService,
     IApiFamilyModelMapper familyModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.FamilyService     = familyService;
     this.FamilyModelMapper = familyModelMapper;
 }
Ejemplo n.º 22
0
 /// <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;
 }
Ejemplo n.º 23
0
 /// <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;
 }
Ejemplo n.º 24
0
 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;
 }
Ejemplo n.º 25
0
 /// <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;
 }
Ejemplo n.º 26
0
 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;
 }
Ejemplo n.º 28
0
        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);
        }
Ejemplo n.º 29
0
 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;
 }
Ejemplo n.º 30
0
 /// <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;
 }
Ejemplo n.º 31
0
 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;
 }
Ejemplo n.º 32
0
 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);
        }
Ejemplo n.º 34
0
 public FamilyController()
 {
     familyService = ServiceBuilder.BuildFamilyService();
     paginate = new Paginate() { PageSize = GLB.familyPerPageCount };
 }