-
-
Save explorer14/98cb76efd1657f134181992d85440f19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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