diff --git a/src/Robware.Data.Tests/BlogRepositoryTests.cs b/src/Robware.Data.Tests/BlogRepositoryTests.cs index 01d6798..b928982 100644 --- a/src/Robware.Data.Tests/BlogRepositoryTests.cs +++ b/src/Robware.Data.Tests/BlogRepositoryTests.cs @@ -21,7 +21,7 @@ namespace Robware.Data.Tests { await repo.SavePost(post); post.Id.Should().Be(11); post.Timestamp.Should().BeCloseTo(DateTime.Now); - await collection.Received(1).InsertOneAsync(Arg.Any()); + await collection.Received(1).ReplaceOneAsync(Arg.Any>(), Arg.Any(), Arg.Any()); } [Fact] @@ -37,7 +37,7 @@ namespace Robware.Data.Tests { await repo.SavePost(post); post.Id.Should().Be(1); post.Timestamp.Should().Be(new DateTime()); - await collection.Received(1).InsertOneAsync(Arg.Any()); + await collection.Received(1).ReplaceOneAsync(Arg.Any>(), Arg.Any(), Arg.Any()); } [Fact]