public void SetUp() { var serviceProvider = new ServiceCollection() .AddTransient <ITabletop, Tabletop.Tabletop>() .BuildServiceProvider(); _tabletop = serviceProvider.GetService <ITabletop>(); }
public ToyRobotSimulator(IRobot robot, IInputParser parser, ITabletop tabletop) { this.robot = robot ?? throw new ArgumentNullException(nameof(robot)); this.parser = parser ?? throw new ArgumentNullException(nameof(parser)); this.tabletop = tabletop ?? throw new ArgumentNullException(nameof(tabletop)); }
public PlaceCommand(IRobot robot, ITabletop tabletop) : base(robot) { _tabletop = tabletop; }
public DriverRobotToy(IToy toy, ITabletop tabletop) { robotToy = toy; this.tabletop = tabletop; }
public Robot(ITabletop tabletop) { _tabletop = tabletop; isPlaced = false; }