public async Task UpdateTest() { var repo = new BetRepository(new Deserializer()); var bet1 = new Bet { Id = Guid.NewGuid(), BetSize = 5, UserId = Guid.NewGuid(), EventId = Guid.NewGuid(), Outcome = "outcome2" }; await repo.CreateAsync(bet1); var bet2 = new Bet { Id = bet1.Id, BetSize = 7, UserId = bet1.UserId, EventId = bet1.EventId, Outcome = "outcome2" }; var updatedEvent = await repo.UpdateAsync(bet2); Assert.AreEqual(updatedEvent.Id, bet2.Id); }