public MovieCreateUnitTest() { movieCreateRepositoryMock = new Mock <IMovieCreateRepository>(); eventbusMock = new Mock <IEventBus>(); backgroundQueueMock = new BackgroundQueue((e) => { }, 1, 1000); mapperMock = new Mock <IMapper>(); movieCreateCommandHandler = new MovieCreateCommandHandler ( movieCreateRepositoryMock.Object, eventbusMock.Object, mapperMock.Object, backgroundQueueMock ); }
public MovieCreateApiCommandHandler(IMovieCreateCommandHandler movieCreateCommandHandler) { this.movieCreateCommandHandler = movieCreateCommandHandler; }