From 97b3d0ca69cdddddec307f1c92969d8b5b3d5025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Mira?= Date: Fri, 7 Jun 2024 23:26:15 +0100 Subject: [PATCH] revert test method name --- LiteDBAsyncTest/SimpleRepositoryTest.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/LiteDBAsyncTest/SimpleRepositoryTest.cs b/LiteDBAsyncTest/SimpleRepositoryTest.cs index 307bdfa..c9ac6ac 100644 --- a/LiteDBAsyncTest/SimpleRepositoryTest.cs +++ b/LiteDBAsyncTest/SimpleRepositoryTest.cs @@ -68,9 +68,9 @@ public async Task UpsertAsyncList() [Fact] - public async Task InsertAsyncAndTest() + public async Task InsertAsync() { - var insertedPerson = await InsertAsync(); + var insertedPerson = await InsertPersonAsync(); var resultPerson = await _repo.SingleByIdAsync(insertedPerson.Id); Assert.Equal(insertedPerson.Id, resultPerson.Id); @@ -102,7 +102,7 @@ public async Task InsertAsyncList() public async Task UpdateAsync() { - var insertedPerson = await InsertAsync(); + var insertedPerson = await InsertPersonAsync(); var person = await _repo.FirstOrDefaultAsync(x => x.Id == insertedPerson.Id); person.FirstName = "Hallo"; @@ -157,7 +157,7 @@ public async Task TestInsertingSameRecordTwiceRaisesException() public async Task DeleteAsync() { - var insertedPerson = await InsertAsync(); + var insertedPerson = await InsertPersonAsync(); var simplePerson = await _repo.SingleAsync(x => x.Id == insertedPerson.Id); bool deleteResult = await _repo.DeleteAsync(simplePerson.Id); deleteResult.Should().BeTrue(); @@ -214,7 +214,7 @@ private static List GetListOflist() return list; } - private async Task InsertAsync() + private async Task InsertPersonAsync() { var person = new SimplePerson() {