public CustomerTest() { var builder = new DbContextOptionsBuilder <InvoicingContext>(); builder.UseInMemoryDatabase($"database{Guid.NewGuid()}"); _invoicingContext = new InvoicingContext(builder.Options); _customerService = new CustomerService(_invoicingContext); _parkingService = new ParkingService(_invoicingContext); _parkedService = new ParkedService(_invoicingContext); }
public ParkedController(IParkedService service) { _service = service; }