public HomeController(IHttpContextAccessor contextAccessor, ITrackerEntryService tableService)
 {
     NullChecker.IsNotNull(contextAccessor, nameof(contextAccessor));
     NullChecker.IsNotNull(tableService, nameof(tableService));
     _contextAccessor = contextAccessor;
     _tableService    = tableService;
 }
        public TrackerEntryServiceTests()
        {
            _pr = new PullRequest(Constants.PR_ID, Constants.URL);
            Repository repository = new Repository(Constants.OWNER, Constants.REPO_NAME, null, new List <PullRequest> {
                _pr
            });

            _user = new User(Constants.USERNAME, new List <Repository> {
                repository
            });
            _expectedResult = new ServiceResponse <IEnumerable <PullRequest> >
            {
                Content = new List <PullRequest> {
                    _pr
                },
                ServiceResponseStatus = ServiceResponseStatus.Ok,
                Message = Constants.MESSAGE
            };

            _tableContext  = new Mock <ITableContext>(MockBehavior.Strict);
            _githubService = new Mock <IGithubService>(MockBehavior.Strict);
            _sut           = new TrackerEntryService(_tableContext.Object, _githubService.Object);
        }