public void CanDeleteReading()
        {
            var sut     = new ReadingRepository(TestHelper.GetDataAccessHelper());
            var reading = new ReadingModel()
            {
                Day            = DateTime.Today.AddDays(-1),
                LocationId     = 1,
                PowerUsed      = 19.8M,
                SolarGenerated = 30.1M
            };
            var taskCreate = sut.CreateReading(reading);

            taskCreate.Wait();
            var item = taskCreate.Result;

            Assert.NotNull(item);
            Assert.True(item.Id > 0);

            var taskDelete = sut.DeleteReading(item.Id);

            taskDelete.Wait();

            var taskGet = sut.GetReading(item.Id);

            taskGet.Wait();
            Assert.Null(taskGet.Result);
        }
        public void CanGetReading()
        {
            var sut = new ReadingRepository(TestHelper.GetDataAccessHelper());

            var taskGet = sut.GetReading(1);

            taskGet.Wait();

            Assert.NotNull(taskGet.Result);
            Assert.Equal(1, taskGet.Result.Id);
        }