예제 #1
0
 public PostalServiceTest()
 {
     _configService = new ConfigService(new ConfigurationBuilder()
                                        .SetBasePath(Directory.GetCurrentDirectory())
                                        .AddJsonFile("appsettings.json")
                                        .Build());
     _parcelManager = new ParcelManager(_configService);
 }
예제 #2
0
 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>();
 }
예제 #3
0
 public RouteService(
     IRouteManager routeManager,
     IVehicleManager vehicleManager,
     IEmployeeManager employeeManager,
     IParcelManager parcelManager
     )
 {
     _routeManager    = routeManager;
     _vehicleManager  = vehicleManager;
     _employeeManager = employeeManager;
     _parcelManager   = parcelManager;
 }
예제 #4
0
 public ParcelService(IParcelManager parcelManager, IEmployeeManager employeeManager)
 {
     _parcelManager   = parcelManager;
     _employeeManager = employeeManager;
 }
예제 #5
0
 public ParcelService(IParcelManager packageManager)
 {
     _packageManager = packageManager;
 }
예제 #6
0
 public StorePlaceService(IStorePlaceManager storePlaceManager, IEmployeeManager employeeManager, IParcelManager parcelManager)
 {
     _storePlaceManager = storePlaceManager;
     _employeeManager   = employeeManager;
     _parcelManager     = parcelManager;
 }
예제 #7
0
 public void Dispose()
 {
     _configService = null;
     _parcelManager = null;
 }
예제 #8
0
 public ParcelController(IParcelManager parcelManager)
 {
     _parcelManager = parcelManager ?? throw new ArgumentNullException(nameof(parcelManager));
 }