public async Task Create_Success() { var newVehicleModel = new VehicleModel { Id = 5, MakeId = 3, Name = "306", Abrv = "306" }; modelRepository.Setup(x => x.InsertAsync(It.IsAny <VehicleModel>())).ReturnsAsync(1); var vehicleModelService = new VehicleModelService(modelRepository.Object); var result = await vehicleModelService.CreateAsync(newVehicleModel); result.ShouldBeEquivalentTo(1); }