private async Task <PositionDto> GetPositionAfterTask(AsyncSmartLawnMowingMachineService service, Task task) { task.Wait(); return(await service.GetPosition()); }
private async Task <MowerResponseResult> TurnAfterTask(AsyncSmartLawnMowingMachineService service, Task task, string turnDirection) { task.Wait(); return(await service.Turn(turnDirection)); }
private async Task <MowerResponseResult> MoveAfterTask(AsyncSmartLawnMowingMachineService service, Task task) { task.Wait(); return(await service.Move()); }
private async Task <MowerResponseResult> TurnBeforeWorkIsComplete(AsyncSmartLawnMowingMachineService service, string turnDirection) { Thread.Sleep(200); return(await service.Turn(turnDirection)); }
private async Task <MowerResponseResult> MoveBeforeWorkIsComplete(AsyncSmartLawnMowingMachineService service) { Thread.Sleep(200); return(await service.Move()); }
public MowerController(AsyncSmartLawnMowingMachineService service) => this.service = service;