public async Task GetGeneralNoteAsync_NonValidNotePath_NoteFoundCode()
        {
            using TestServer testServer = ApiTestHelper.CreateTestServerWithFakeDatabaseConfig();
            using HttpClient httpClient = testServer.CreateClient();

            using HttpResponseMessage response = await httpClient.GetAsync($"{MainRoute}/blabla").ConfigureAwait(false);

            Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
        }
        public async Task GetGeneralNotesStructureAsync_SuccessStatusCode()
        {
            using TestServer testServer = ApiTestHelper.CreateTestServerWithFakeDatabaseConfig();
            using HttpClient httpClient = testServer.CreateClient();

            using HttpResponseMessage response = await httpClient.GetAsync(MainRoute).ConfigureAwait(false);

            response.EnsureSuccessStatusCode();
        }
        public async Task GetPrivateNoteAsync_NonValidNoteIdentifier_NoteFoundCode()
        {
            using TestServer testServer = ApiTestHelper.CreateTestServerWithFakeDatabaseConfig();
            using HttpClient httpClient = testServer.CreateClient();

            const string notExistingPrivateNote = "1050";

            using HttpResponseMessage response = await httpClient.GetAsync($"{MainRoute}/note/{notExistingPrivateNote}").ConfigureAwait(false);

            Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
        }
        public async Task GetPrivateNoteAsync_ValidNoteIdentifier_CorrectNoteTextIsGiven(string noteIdentifier, string expectedText)
        {
            using TestServer testServer = ApiTestHelper.CreateTestServerWithFakeDatabaseConfig();
            using HttpClient httpClient = testServer.CreateClient();

            using HttpResponseMessage response = await httpClient.GetAsync($"{MainRoute}/note/{noteIdentifier}").ConfigureAwait(false);

            response.EnsureSuccessStatusCode();
            NoteResource noteResource = JsonConvert.DeserializeObject <NoteResource>(
                await response.Content.ReadAsStringAsync().ConfigureAwait(false));

            Assert.Equal(expectedText, noteResource.Text);
        }