public sealed class RoverOperationUsecase | |
{ | |
private readonly IRetrieveRoverCommands roverCommandRetriever; | |
private readonly ITransmitRoverPosition roverPositionTransmitter; | |
public RoverOperationUsecase( | |
IRetrieveRoverCommands roverCommandRetriever, | |
ITransmitRoverPosition roverPositionTransmitter) | |
{ | |
this.roverCommandRetriever = roverCommandRetriever; | |
this.roverPositionTransmitter = roverPositionTransmitter; | |
} | |
public async Task StartRoverOperation() | |
{ | |
// 1. Get all commands from the IRetrieveRoverCommands port | |
// 2. Loop over all the commands and execute them against the rover one by one | |
// 3. Publish rover's current position to the output port ITransmitRoverPosition | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment