public void Test_DeletePassenger() { //Arrange var passenger = new Passenger(); passenger.PassengerId = Convert.ToInt32(DateTime.Now.Ticks.ToString()); var resultType = mockDataRepo.Setup(x => x.PassengerDetailsDelete(passenger.PassengerId.ToString())).Returns(true); //Act var response = _passengerController.PassengerDetailsDelete(passenger.PassengerId.ToString()); //Assert Assert.True(response); }