public async void SaveBook() { System.Diagnostics.Debugger.Launch(); var options = new DbContextOptionsBuilder <DbContextBook>() .UseInMemoryDatabase(databaseName: "db_books_test") .Options; var context = new DbContextBook(options); New.RequestBook request = new New.RequestBook { Title = "Microservices Book", PublicationDate = DateTime.Now, AuthorGuid = Guid.Empty }; New.Driver driver = new New.Driver(context); var result = await driver.Handle(request, new System.Threading.CancellationToken()); Assert.True(result != null); }
public ReturnController(DbContextBook context) { _context = context; }
public Driver(DbContextBook Context, IMapper mapper) { _context = Context; _mapper = mapper; }
public BorrowController(DbContextBook context) { _context = context; }
public PublisherController(DbContextBook context) { _context = context; }
public AuthorController(DbContextBook context) { _context = context; }
public Driver(DbContextBook context, IRabbitEventBuss rabbitEventBuss) { _context = context; _rabbitEventBuss = rabbitEventBuss; }