public async Task ItemIndexViewModel_CreateUpdateAsync_Valid_Create_Should_Pass() { // Arrange var data = new ItemModel { Name = "New Item" }; // Act var result = await ViewModel.CreateUpdateAsync(data); // Reset // Assert Assert.AreEqual(true, result); // Update returned Pass }
public async Task ItemIndexViewModel_CreateUpdateAsync_Valid_Create_Should_Pass() { // Arrange var data = new ItemModel { Name = "New Item" }; // Act var result = await ViewModel.CreateUpdateAsync(data); // Reset // Need to clear the added item, and reload the dataset await ResetDataAsync(); // Assert Assert.AreEqual(true, result); // Update returned Pass }