예제 #1
0
        public async Task DeleteEmployeeDetails(int employeeId)
        {
            _employee.Setup(p => p.DeleteEmployeeDetails(employeeId)).Verifiable();
            var result = await employeeController.DeleteEmployeeDetails(employeeId);

            _employee.Verify();
        }
        public void Delete()
        {
            // Arrange
            EmployeeController controller = new EmployeeController();

            // Act
            controller.DeleteEmployeeDetails(5);

            // Assert
        }