public void Setup() { _questionRepositoryMock = new Mock <IQuestionRepository>(); _daySummaryService = new DaySummaryService( _questionRepositoryMock.Object ); }
public DaySummaryServiceTest() { _configuration = new ConfigurationBuilder() .AddJsonFile("appsettings.json") .Build(); _httpRequestHandlerMock = new Mock <IHttpRequestHandler>(); _daySummaryService = new DaySummaryService(_httpRequestHandlerMock.Object, _configuration); }