public RemoveEventTests() { _outputMock = new Mock <IRemoveEventOutputPort>(); Action <RemoveEventOutput> onReceivedOutput = o => { _output = o; }; _outputMock.Setup(o => o.Default(It.IsAny <RemoveEventOutput>())).Callback(onReceivedOutput); _entityFactory = new EntityFactory(); _context = new ToDoContext(); _repository = new EventRepository(_context); _useCase = new RemoveEventUseCase(_outputMock.Object, _repository); }
public RemoveEventController(IRemoveEventUseCase useCase, RemoveEventPresenter presenter) { _useCase = useCase; _presenter = presenter; }