diff --git a/LiteDBAsync/ILiteRepositoryAsync.cs b/LiteDBAsync/ILiteRepositoryAsync.cs
index 05ceeb4..08174a7 100644
--- a/LiteDBAsync/ILiteRepositoryAsync.cs
+++ b/LiteDBAsync/ILiteRepositoryAsync.cs
@@ -4,7 +4,7 @@
using System.Threading.Tasks;
using LiteDB.Async;
-namespace LiteDB.async
+namespace LiteDB.Async
{
public interface ILiteRepositoryAsync : IDisposable
{
diff --git a/LiteDBAsync/LiteDBAsync.csproj b/LiteDBAsync/LiteDBAsync.csproj
index 2aa5bad..6b9f187 100644
--- a/LiteDBAsync/LiteDBAsync.csproj
+++ b/LiteDBAsync/LiteDBAsync.csproj
@@ -1,7 +1,7 @@
LiteDB.Async
- 0.1.7
+ 0.1.8
Mark Lockett
netstandard2.0
LiteDB-Async
@@ -14,11 +14,11 @@
LiteDB.Async - A lightweight async wrapper for LiteDB
True
LiteDBAsyncStrongNameKey.snk
- LiteDB.Async
+ LiteDB.Async
-
+
diff --git a/LiteDBAsync/LiteRepositoryAsync.cs b/LiteDBAsync/LiteRepositoryAsync.cs
index 61256bd..eb48d63 100644
--- a/LiteDBAsync/LiteRepositoryAsync.cs
+++ b/LiteDBAsync/LiteRepositoryAsync.cs
@@ -3,7 +3,6 @@
using System.IO;
using System.Linq.Expressions;
using System.Threading.Tasks;
-using LiteDB.async;
namespace LiteDB.Async
{
diff --git a/LiteDBAsyncTest/LiteDBAsyncTest.csproj b/LiteDBAsyncTest/LiteDBAsyncTest.csproj
index a5e44d1..bd98cd1 100644
--- a/LiteDBAsyncTest/LiteDBAsyncTest.csproj
+++ b/LiteDBAsyncTest/LiteDBAsyncTest.csproj
@@ -9,15 +9,15 @@
-
-
-
-
-
+
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/LiteDBAsyncTest/SimpleRepositoryTest.cs b/LiteDBAsyncTest/SimpleRepositoryTest.cs
index 7c637ad..c9ac6ac 100644
--- a/LiteDBAsyncTest/SimpleRepositoryTest.cs
+++ b/LiteDBAsyncTest/SimpleRepositoryTest.cs
@@ -68,22 +68,14 @@ public async Task UpsertAsyncList()
[Fact]
- public async Task InsertAsync()
+ public async Task InsertAsync()
{
+ var insertedPerson = await InsertPersonAsync();
- var person = new SimplePerson()
- {
- FirstName = "John",
- LastName = "Smith"
- };
-
- await _repo.InsertAsync(person);
-
- var resultPerson = await _repo.SingleByIdAsync(person.Id);
- Assert.Equal(person.Id, resultPerson.Id);
- Assert.Equal(person.FirstName, resultPerson.FirstName);
- Assert.Equal(person.LastName, resultPerson.LastName);
- return resultPerson.Id;
+ var resultPerson = await _repo.SingleByIdAsync(insertedPerson.Id);
+ Assert.Equal(insertedPerson.Id, resultPerson.Id);
+ Assert.Equal(insertedPerson.FirstName, resultPerson.FirstName);
+ Assert.Equal(insertedPerson.LastName, resultPerson.LastName);
}
@@ -110,8 +102,8 @@ public async Task InsertAsyncList()
public async Task UpdateAsync()
{
- var id = await InsertAsync();
- var person = await _repo.FirstOrDefaultAsync(x=>x.Id==id);
+ var insertedPerson = await InsertPersonAsync();
+ var person = await _repo.FirstOrDefaultAsync(x => x.Id == insertedPerson.Id);
person.FirstName = "Hallo";
person.LastName = "Helga";
@@ -165,8 +157,8 @@ public async Task TestInsertingSameRecordTwiceRaisesException()
public async Task DeleteAsync()
{
- var id = await InsertAsync();
- var simplePerson = await _repo.SingleAsync(x=>x.Id==id);
+ var insertedPerson = await InsertPersonAsync();
+ var simplePerson = await _repo.SingleAsync(x => x.Id == insertedPerson.Id);
bool deleteResult = await _repo.DeleteAsync(simplePerson.Id);
deleteResult.Should().BeTrue();
@@ -221,5 +213,18 @@ private static List GetListOflist()
};
return list;
}
+
+ private async Task InsertPersonAsync()
+ {
+ var person = new SimplePerson()
+ {
+ FirstName = "John",
+ LastName = "Smith"
+ };
+
+ await _repo.InsertAsync(person);
+
+ return person;
+ }
}
}