public SummaryService(IItemRepository itemRepository, IClientSummaryRepository clientSummaryRepository, IUserSummaryRepository userSummaryRepository, IEncounterRepository encounterRepository, ISyncManagerService syncManagerService)
 {
     _itemRepository          = itemRepository;
     _clientSummaryRepository = clientSummaryRepository;
     _userSummaryRepository   = userSummaryRepository;
     _encounterRepository     = encounterRepository;
     _syncManagerService      = syncManagerService;
 }
        public void SetUp()
        {
            var config = new ConfigurationBuilder()
                         .AddJsonFile("appsettings.json")
                         .Build();
            var connectionString = config["connectionStrings:realConnection"];

            var options = new DbContextOptionsBuilder <LiveHAPIContext>()
                          .UseSqlServer(connectionString)
                          .Options;

            _context = new LiveHAPIContext(options);

            _practiceRepository = new PracticeRepository(_context);
            _personRepository   = new PersonRepository(_context);
            _clientRepository   = new ClientRepository(_context);
            _clientService      = new ClientService(_practiceRepository, new PersonRepository(_context),
                                                    new ClientRepository(_context), new InvalidMessageRepository(_context));
            _syncManagerService = new SyncManagerService(new ClientStageRepository(_context));
            _summaryService     = new SummaryService(new ItemRepository(_context), new ClientSummaryRepository(_context), new UserSummaryRepository(_context), new EncounterRepository(_context), _syncManagerService);
        }
 public ManagerController(ISyncManagerService managerService)
 {
     _managerService = managerService;
 }