Ejemplo n.º 1
0
 private async Task <PositionDto> GetPositionAfterTask(AsyncSmartLawnMowingMachineService service, Task task)
 {
     task.Wait();
     return(await service.GetPosition());
 }
Ejemplo n.º 2
0
 private async Task <MowerResponseResult> TurnAfterTask(AsyncSmartLawnMowingMachineService service, Task task, string turnDirection)
 {
     task.Wait();
     return(await service.Turn(turnDirection));
 }
Ejemplo n.º 3
0
 private async Task <MowerResponseResult> MoveAfterTask(AsyncSmartLawnMowingMachineService service, Task task)
 {
     task.Wait();
     return(await service.Move());
 }
Ejemplo n.º 4
0
 private async Task <MowerResponseResult> TurnBeforeWorkIsComplete(AsyncSmartLawnMowingMachineService service, string turnDirection)
 {
     Thread.Sleep(200);
     return(await service.Turn(turnDirection));
 }
Ejemplo n.º 5
0
 private async Task <MowerResponseResult> MoveBeforeWorkIsComplete(AsyncSmartLawnMowingMachineService service)
 {
     Thread.Sleep(200);
     return(await service.Move());
 }
Ejemplo n.º 6
0
 public MowerController(AsyncSmartLawnMowingMachineService service) => this.service = service;