public AddTodoTests() { _context = new ToDoContext(); ITodoRepository todoRepo = new TodoRepository(_context); IEntityFactory factory = new EntityFactory(); _outputMock = new Mock <IAddTodoOutputPort>(); _useCase = new AddTodoUseCase(_outputMock.Object, todoRepo, factory); }
public AddTodoController(IAddTodoUseCase useCase, AddTodoPresenter presenter) { _useCase = useCase; _presenter = presenter; }