public async Task TestCrudOperationsAsync() { // Create one dummy var dummy1 = await _write.CreateAsync(null, _dummy1); Assert.NotNull(dummy1); Assert.NotNull(dummy1.Id); Assert.Equal(_dummy1.Key, dummy1.Key); Assert.Equal(_dummy1.Content, dummy1.Content); // Create another dummy var dummy2 = await _write.CreateAsync(null, _dummy2); Assert.NotNull(dummy2); Assert.NotNull(dummy2.Id); Assert.Equal(_dummy2.Key, dummy2.Key); Assert.Equal(_dummy2.Content, dummy2.Content); //// Get all dummies //var dummies = await _get.GetAllAsync(null); //Assert.NotNull(dummies); //Assert.Equal(2, dummies.Count()); // Update the dummy dummy1.Content = "Updated Content 1"; var dummy = await _write.UpdateAsync(null, dummy1); Assert.NotNull(dummy); Assert.Equal(dummy1.Id, dummy.Id); Assert.Equal(dummy1.Key, dummy.Key); Assert.Equal(dummy1.Content, dummy.Content); // Delete the dummy await _write.DeleteByIdAsync(null, dummy1.Id); // Try to get deleted dummy dummy = await _get.GetOneByIdAsync(null, dummy1.Id); Assert.Null(dummy); }