public void Get_WhenCalled_ReturnsOkResult()
        {
            //Arrange
            var controller = new PowerStatisticsController(
                _configurationMock.Object,
                _loggerMock.Object,
                _powerStatisticsMock.Object);

            // Act
            var okResult = controller.Get();

            // Assert
            Assert.IsType <OkObjectResult>(okResult.Result);
        }
        public void Get_WhenCalled_ReturnsListOfPowerStatisticsModel()
        {
            //Arrange
            var controller = new PowerStatisticsController(
                _configurationMock.Object,
                _loggerMock.Object,
                _powerStatisticsMock.Object);

            // Act
            var result = controller.Get().Result as OkObjectResult;

            // Assert
            var items = Assert.IsAssignableFrom <IList <PowerStatisticsModel> >(result.Value);

            Assert.Equal(2, items.Count);
            Assert.Equal("One.csv", items[0].FileName);
        }