✏️ Fix typo
continuous-integration/drone/push Build is passing Details

pull/188/head^2
Alexis Drai 3 years ago
parent 84f52c3dce
commit c623776e4e

@ -343,7 +343,7 @@ namespace Tests.Data_UTs.Players
} }
[Fact] [Fact]
public void TestRemoveWhenPreExistentThenRemoves() public async Task TestRemoveWhenPreExistentThenRemoves()
{ {
// Arrange // Arrange
@ -358,7 +358,7 @@ namespace Tests.Data_UTs.Players
{ {
db.Database.EnsureCreated(); db.Database.EnsureCreated();
mgr = new(db); mgr = new(db);
mgr.Add(toRemove); // calls SaveChangesAsync() await mgr.Add(toRemove); // calls SaveChangesAsync()
mgr.Remove(toRemove); mgr.Remove(toRemove);
} }
@ -367,7 +367,6 @@ namespace Tests.Data_UTs.Players
using (DiceAppDbContextWithStub db = new(options)) using (DiceAppDbContextWithStub db = new(options))
{ {
db.Database.EnsureCreated(); db.Database.EnsureCreated();
mgr = new(db);
Assert.DoesNotContain(toRemove, db.Players); Assert.DoesNotContain(toRemove, db.Players);
} }

Loading…
Cancel
Save