public async void Should_Insert() { // Arrange var entities = FakeEntity.FakeEntities(); var newEntity = new FakeEntity { Id = 9 }; var repository = new CacheRepository <FakeEntity>(entities); // Act await repository.InsertAsync(UserId, newEntity); var result = repository.Exists(newEntity.Id); // Assert Assert.IsTrue(result); }