public PostalServiceTest() { _configService = new ConfigService(new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json") .Build()); _parcelManager = new ParcelManager(_configService); }
public SortService(IParcelManager parcelManager, IRouteManager routeManager, IStorePlaceManager storePlaceManager) { _parcelManager = parcelManager; _routeManager = routeManager; _storePlaceManager = storePlaceManager; _parcels = new List <Parcel>(); _parcelsToClients = new List <Parcel>(); _parcelsToOtherStorePlace = new List <Parcel>(); }
public RouteService( IRouteManager routeManager, IVehicleManager vehicleManager, IEmployeeManager employeeManager, IParcelManager parcelManager ) { _routeManager = routeManager; _vehicleManager = vehicleManager; _employeeManager = employeeManager; _parcelManager = parcelManager; }
public ParcelService(IParcelManager parcelManager, IEmployeeManager employeeManager) { _parcelManager = parcelManager; _employeeManager = employeeManager; }
public ParcelService(IParcelManager packageManager) { _packageManager = packageManager; }
public StorePlaceService(IStorePlaceManager storePlaceManager, IEmployeeManager employeeManager, IParcelManager parcelManager) { _storePlaceManager = storePlaceManager; _employeeManager = employeeManager; _parcelManager = parcelManager; }
public void Dispose() { _configService = null; _parcelManager = null; }
public ParcelController(IParcelManager parcelManager) { _parcelManager = parcelManager ?? throw new ArgumentNullException(nameof(parcelManager)); }