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

            _daySummaryService = new DaySummaryService(_httpRequestHandlerMock.Object, _configuration);
        }