public async Task TryDeleteLoggedDayAsync_ExistingId_ReturnsTrue()
        {
            // arrange
            var service = new TrackerLogService(_database, _logger);
            int id      = 1;

            // act
            bool successful = await service.TryDeleteLoggedDayAsync(id);

            // assert
            Assert.True(successful);
        }
        public async Task TryDeleteLoggedDayAsync_ExistingId_DeletesLoggedDay()
        {
            // arrange
            var service = new TrackerLogService(_database, _logger);
            int id      = 1;

            // act
            await service.TryDeleteLoggedDayAsync(id);

            var loggedDay = await _context.Table <LoggedDay>().FirstOrDefaultAsync(day => day.Id == id);

            // assert
            Assert.Null(loggedDay);
        }
        public async Task TryDeleteLoggedDayAsync_ExistingId_DoesNotDeleteTracker()
        {
            // arrange
            var service = new TrackerLogService(_database, _logger);
            int id      = 1;

            // act
            var trackerId = LoggedDays.First(day => day.Id == id).TrackerId;
            await service.TryDeleteLoggedDayAsync(id);

            var tracker = Trackers.FirstOrDefault(t => t.Id == trackerId);

            // assert
            Assert.NotNull(tracker);
        }