// GET: VehicleModels/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            VehicleModel          vehicleModel    = vehicleModelLogic.FindVehicleModel((int)id);
            VehicleModelViewModel vehicleModelsVM =
                Mapper.Map <VehicleModelViewModel>(vehicleModel);

            if (vehicleModel == null)
            {
                return(HttpNotFound());
            }
            return(View("~/Views/Admin/VehicleModels/Details.cshtml", vehicleModelsVM));
        }
        public async Task ShouldReturnVehicleModel()
        {
            //Arrange
            var modelId      = 2;
            var vehicleModel = new VehicleModel()
            {
                Id     = modelId,
                Name   = "Car Model",
                Abrv   = "CM",
                MakeId = 1
            };

            _modelRepoMock.Setup(x => x.FindById(modelId)).ReturnsAsync(vehicleModel);

            //Act
            IVehicleModel model = await _sut.FindVehicleModel(modelId);

            //Assert
            //Assert.Equal(modelId, model.Id);
            model.Id.Should().Be(modelId);
        }