public VehicleVM Add(VehicleVM model) { var request = new Request<VehicleVM>(); request.Data = model; var repo = new InsertVehicleRepo(ConnStringGetter.GetConnString); var response = repo.Process(request); model.VehID = response.Data.VehID; return model; }
public void InsertVehicleSuccess() { var repo = new InsertVehicleRepo(ConnStringGetter.GetConnString); var request = new Request<VehicleVM>(); var dto = new VehicleVM(); request.Data = dto; var response = repo.Process(request); //Assert.IsTrue(response.Success); Assert.AreEqual(15, response.Data.VehID); }