void Start() { _collectionController = GameObject.FindGameObjectWithTag(Tag.GameController) .GetComponent <CollectionSystem>(); _controller = _collectionController.GetComponent <RepairController>(); _controller.RegisterRepair(this); }
public void GetRepairs_ReturnsNotFound() { _fixItTrackerRepository = new UnitTestsRepository(noRepairs: true); _repairController = new RepairController(_fixItTrackerRepository, UnitTestsMapping.GetMapper()); var okResult = _repairController.GetRepairs(null, null, null, null); Assert.IsType <NotFoundObjectResult>(okResult.Result); }
public RepairControllerTest() { _fixItTrackerRepository = new UnitTestsRepository(); _repairController = new RepairController(_fixItTrackerRepository, UnitTestsMapping.GetMapper()); }
void Start() { _controller = GameObject.FindGameObjectWithTag(Tag.GameController). GetComponent <RepairController>(); _controller.RegisterTalkable(TheTalkable); }