public void DeletePassenger1() { var passenger = new PassengerView(); passenger.P_No = 1; // Arrange var resultObj = mockDtaRepository.Setup(x => x.DeletePassenger(passenger.P_No)).Returns(true); // Act var response = _passengerController.DeletePassenger(passenger.P_No); //Assert Assert.True(response); }