コード例 #1
0
        public void FindVehicles_NullParams_ReturnAll()
        {
            // Arrange
            var expectedValues = Mapper.Map <List <VehicleDto> >(this._vehiclesList);

            // Act
            var result = _controller.FindVehicles(null) as OkNegotiatedContentResult <IEnumerable <VehicleDto> >;

            // Assert
            Assert.IsNotNull(result, "result is not OK 200");
            CollectionAssert.AreEqual(expectedValues, result.Content.ToList());
        }