Beispiel #1
0
        public void GetAllPassengersByGenderReturnsNotFound()
        {
            // Arrange
            _mockBookingService.Setup(x => x.GetAllPassengersByGender(It.IsAny <GenderType>())).Returns(new List <Person>());

            // Act
            var result = _controller.GetAllPassengersByGender(GenderTypeViewModel.Male);

            // Assert
            Assert.IsType <NotFoundResult>(result.Result);
        }