/// <summary> /// UpdateItem. /// </summary> /// <param name="id">Id of the item.</param> /// <param name="testData">Test Data.</param> protected void UpdateItem(string id, string testData) { var item = new TestRoot(id); // Generating virtual load of events.. var history = Store.GetAsync(id, 0).Result; item.LoadFromHistory(history); item.Update(new TestUpdateCommand { AggregateRootId = id, TestData = testData }); Store.SaveAsync(item).Wait(); }