public async Task GetAllTest() { var repo = new BetRepository(new Deserializer()); var lengthBefore = (await repo.GetAllAsync()).Count; var bet1 = new Bet { Id = Guid.NewGuid(), BetSize = 7, UserId = Guid.NewGuid(), EventId = Guid.NewGuid(), Outcome = "outcome3" }; await repo.CreateAsync(bet1); Thread.Sleep(1000); var bet2 = new Bet { Id = Guid.NewGuid(), BetSize = 9, UserId = Guid.NewGuid(), EventId = Guid.NewGuid(), Outcome = "outcome5" }; await repo.CreateAsync(bet2); Thread.Sleep(1000); var bet3 = new Bet { Id = Guid.NewGuid(), BetSize = 12, UserId = Guid.NewGuid(), EventId = Guid.NewGuid(), Outcome = "outcome3" }; await repo.CreateAsync(bet3); var events = await repo.GetAllAsync(); Assert.AreEqual(lengthBefore + 3, events.Count); }