public async Task ItemIndexViewModel_CheckIfItemExists_Default_Should_Pass() { // Arrange // Add items into the list Z ordered var dataTest = new ItemModel { Name = "test" }; await ViewModel.CreateAsync(dataTest); await ViewModel.CreateAsync(new ItemModel { Name = "z" }); await ViewModel.CreateAsync(new ItemModel { Name = "m" }); await ViewModel.CreateAsync(new ItemModel { Name = "a" }); // Act var result = ViewModel.CheckIfExists(dataTest); // Reset await ResetDataAsync(); // Assert Assert.AreEqual(dataTest.Id, result.Id); }