public async Task DoesUserLikeReviewShouldReturnFalseWhenItIsntLiked() { var options = new DbContextOptionsBuilder <AlexandriaDbContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .Options; var db = new AlexandriaDbContext(options); await db.Likes.AddRangeAsync( new Like { UserId = "user1", ReviewId = 1, IsLiked = false }, new Like { UserId = "user2", ReviewId = 2, IsLiked = true }); await db.SaveChangesAsync(); var likesService = new LikesService(db); var result = await likesService.DoesUserLikeReviewAsync("user1", 1); Assert.False(result); }