Exemple #1
0
        public DeleteTodoHandlerTests()
        {
            _todoItemRepository = Substitute.For <ITodoItemRepository>();
            _busPublisher       = Substitute.For <IBusPublisher>();
            _context            = Substitute.For <ICorrelationContext>();

            _commandHandler = new DeleteTodoHandler(_todoItemRepository, _busPublisher);
        }
Exemple #2
0
        public HandlersTests()
        {
            var dbContext = DbContextCreate();

            _getTodoListHandler = new(dbContext);
            _createTodoHandler  = new(dbContext);
            _deleteTodoHandler  = new(dbContext);
            _putTodoHandler     = new(dbContext);
            _getTodoByIdHandler = new(dbContext);
        }