public DeliveryStatusUpdateServiceTest() { IServiceProvider _serviceProvider = ServiceBuilder.getServiceProviderWithInMemoryDatabase(); context = _serviceProvider.GetRequiredService <ApplicationDbContext>(); statusUpdateService = new DeliveryStatusUpdateService(context); }
public DriverDeliveriesController(ApplicationDbContext context, IHttpContextAccessor contextAccessor, DeliveryStatusUpdateService statusUpdateService, IDirectionsService directionsService, INotificationService notService) : base(context, contextAccessor) { this.statusUpdateService = statusUpdateService; this.directionsService = directionsService; this.notificationService = notService; }