Skip to content

Commit

Permalink
revert test method name
Browse files Browse the repository at this point in the history
  • Loading branch information
zmira committed Jun 7, 2024
1 parent 21d6f14 commit 97b3d0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions LiteDBAsyncTest/SimpleRepositoryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<SimplePerson>(insertedPerson.Id);
Assert.Equal(insertedPerson.Id, resultPerson.Id);
Expand Down Expand Up @@ -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<SimplePerson>(x => x.Id == insertedPerson.Id);

person.FirstName = "Hallo";
Expand Down Expand Up @@ -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<SimplePerson>(x => x.Id == insertedPerson.Id);
bool deleteResult = await _repo.DeleteAsync<SimplePerson>(simplePerson.Id);
deleteResult.Should().BeTrue();
Expand Down Expand Up @@ -214,7 +214,7 @@ private static List<SimplePerson> GetListOflist()
return list;
}

private async Task<SimplePerson> InsertAsync()
private async Task<SimplePerson> InsertPersonAsync()
{
var person = new SimplePerson()
{
Expand Down

0 comments on commit 97b3d0c

Please sign in to comment.