public void Setup() { var services = ServiceContainerBuilder.ConfigureServices(); var serviceProvider = services.BuildServiceProvider(); var plateau = serviceProvider.GetService <IPlateau>(); plateau.SetSize("5 5"); roverCommander = serviceProvider.GetService <IRoverCommander>(); roverCommander.Plateau = plateau; rover = serviceProvider.GetService <IRover>(); rover.SetPosition("1 2 N"); rover.Commands = "LMLMLMLMM"; roverCommander.Plateau.AddRover(rover); }
public RoverOrchestrator(IRoverFactory roverFactory, IRoverCommander roverCommander, IRoverFormatter formatter) { _roverFactory = roverFactory; _roverCommander = roverCommander; _formatter = formatter; }
public RoverOrchestrator(IRoverFactory roverFactory, IRoverCommander roverCommander, IRoverFormatter formatter) { _roverFactory = roverFactory; _roverCommander = roverCommander; _formatter = formatter; }