public CatalogVehicleServices(ICatalogVehicleRepository repo) { Contract.Requires<ArgumentNullException>(repo != null, "repo"); Contract.Ensures(this.CatalogVehicleRepository == repo, "repo"); this.CatalogVehicleRepository = repo; }
public CatalogVehicleControllerWorkerServices(ICatalogVehicleServices svc, ICatalogVehicleRepository repo) { Contract.Requires<ArgumentNullException>(svc != null, "svc"); Contract.Requires<ArgumentNullException>(repo != null, "repo"); this.CatalogVehicleRepo = repo; this.CatalogVehicleService = svc; }