public async Task ExecuteDeleteEmployee_DeleteEmployee_Correct() { await _employeeDetailsViewModel.ExecuteDeleteEmployee(1); A.CallTo(() => _employeeService.DeleteAsync(A <int> .That.Matches(x => x > 0))).MustHaveHappened(); Assert.IsTrue(_employeeDetailsViewModel.CurrentEmployeeViewModel.IsDeleted); Assert.IsFalse(_employeeDetailsViewModel.IsDeletePopupOpen); Assert.IsTrue(_eventTrigger); }