From f1d1b42eeaf31810aa709f26bcb00aaf43e55fd1 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Mon, 10 Apr 2023 16:22:23 -1000 Subject: [PATCH] add snippet tags --- .../samples/MinApiTestsSample/UnitTests/TodoInMemoryTests.cs | 2 ++ .../MinApiTestsSample/WebMinRouteGroup/TodoEndpointsV1.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/fundamentals/minimal-apis/samples/MinApiTestsSample/UnitTests/TodoInMemoryTests.cs b/fundamentals/minimal-apis/samples/MinApiTestsSample/UnitTests/TodoInMemoryTests.cs index 67268e9..c4e55b3 100644 --- a/fundamentals/minimal-apis/samples/MinApiTestsSample/UnitTests/TodoInMemoryTests.cs +++ b/fundamentals/minimal-apis/samples/MinApiTestsSample/UnitTests/TodoInMemoryTests.cs @@ -26,6 +26,7 @@ public class TodoInMemoryTests } // + // [Fact] public async Task GetAllReturnsTodosFromDatabase() { @@ -72,6 +73,7 @@ public class TodoInMemoryTests Assert.True(todo2.IsDone); }); } + // // [Fact] diff --git a/fundamentals/minimal-apis/samples/MinApiTestsSample/WebMinRouteGroup/TodoEndpointsV1.cs b/fundamentals/minimal-apis/samples/MinApiTestsSample/WebMinRouteGroup/TodoEndpointsV1.cs index 6b29daa..b478cf0 100644 --- a/fundamentals/minimal-apis/samples/MinApiTestsSample/WebMinRouteGroup/TodoEndpointsV1.cs +++ b/fundamentals/minimal-apis/samples/MinApiTestsSample/WebMinRouteGroup/TodoEndpointsV1.cs @@ -32,11 +32,13 @@ public static class TodoEndpointsV1 } // get all todos + // public static async Task GetAllTodos(TodoGroupDbContext database) { var todos = await database.Todos.ToListAsync(); return TypedResults.Ok(todos); } + // // get todo by id public static async Task, NotFound>> GetTodo(int id, TodoGroupDbContext database)