public async Task RepositoryWithoutTaskDefinitionReturnsNull()
        {
            var builder = TestsHelper.SetupInMemoryDatabase(Guid.NewGuid().ToString());

            using (var context = new TimedTodoContext(builder.Options))
            {
                var repository     = new TimedTodoRepository(context);
                var taskDefinition = await repository.GetTaskDefinitionAsync(Guid.NewGuid());

                Assert.IsNull(taskDefinition);
            }
        }
        public async Task RepositoryCanGetTaskDefinition()
        {
            var builder = TestsHelper.SetupInMemoryDatabase(Guid.NewGuid().ToString());

            Guid taskDefinitionId = TestsHelper.SeedTaskDefinition(builder.Options);

            using (var context = new TimedTodoContext(builder.Options))
            {
                var repository = new TimedTodoRepository(context);
                var retrievedTaskDefinition = await repository.GetTaskDefinitionAsync(taskDefinitionId);

                Assert.AreEqual(taskDefinitionId, retrievedTaskDefinition.Id);
            }
        }