Skip to content

Instantly share code, notes, and snippets.


explorer14/Usecase.cs Secret

Last active Jun 22, 2020
What would you like to do?
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
You can’t perform that action at this time.