public AuthorCreationTest() { _factory = new ContextFactory(); _factory.Initialize().Wait(); _unitOfWork = _factory.Uow; _useCase = new CreateAuthorUseCase(_unitOfWork); }
public FindAuthorsTest() { _factory = new ContextFactory(); _factory.Initialize(); _unitOfWork = _factory.Uow; _useCase = new FindAuthorsUseCase(_unitOfWork); }
public ContextFactory() { DbContextOptionsBuilder <LibraryContext> builder = new DbContextOptionsBuilder <LibraryContext>(); var context = new LibraryContext(builder.UseInMemoryDatabase().Options); context.Database.EnsureDeleted(); context.Database.EnsureCreated(); Uow = new LibraryUoW(context); Initialize().Wait(); }
public FindAuthorsUseCase(ILibraryUoW uow) : base(uow) { }
public BusinessCoreGuid(ILibraryUoW uow, IRepositoryCore <TEntity, Guid> repository) : base(uow, repository) { }
protected UseCaseCore(ILibraryUoW uow) { UoW = uow; }
public BusinessCore(ILibraryUoW uow, IRepositoryCore <TEntity, TId> repository) { Uow = uow; Repository = repository; }
public CreateAuthorUseCase(ILibraryUoW uow) : base(uow) { }