Skip to content

Minor refactoring: consider moving EngineController out of MockListenerController #322

Open
@nikitavlaev

Description

@nikitavlaev

Description

Currently, there is a design-related problem with MockListenerController.
It requires EngineController, but Mocker is meant to be used even without existence of an engine.
For now, Mocker has an optional field of MockListenerController?, but that is still a dependency.

Expected behavior

Mocker should be independent of engine.

Context

The proposed solution is to pass EngineController directly to MockListeners when attached through engine.
This can be done through mutable nullable property.

Metadata

Metadata

Assignees

Labels

ctg-enhancementNew feature, improvement or change requestctg-refactoringIssue related to refactoring process

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions