private void Initialize(DeleteBookInputDto book, EntityDependency[] dependencies) { RegisterCommandRepositoryFactory <Book>(() => new BookCommandRepository()); RootEntity = new Book { Id = book.BookId }; Enqueue(new DeleteEntityCommandOperation <Book>(RootEntity, dependencies)); }
public DeleteBookCommandAggregate(DeleteBookInputDto book, EntityDependency[] dependencies = null) : base(new DomainFramework.DataAccess.RepositoryContext(BookWithPagesConnectionClass.GetConnectionName())) { Initialize(book, dependencies); }