예제 #1
0
        public void Test_UpdatePassenger()
        {
            //Act
            var model = JsonConvert.DeserializeObject <Passenger>(File.ReadAllText("Data/UpdatePassenger.json"));
            //Arrange
            var result   = mockDataRepo.Setup(x => x.PassengerDetailsUpdate(model)).Returns(model);
            var response = _passengerController.PassengerDetailsUpdate(model);

            //Assert
            Assert.Equal(model, response);
        }