void Start() { restaurant = GameLogic.Restaurant; Transform tablesArray = restaurant.inspectorValues.tablesArrayMenu; for (int i = 0; i < tablesArray.childCount; i++) { if (tablesArray.GetChild(i).name == transformComponent.name) { OrderInTablesArray = i; } } }
public RestaurantController(AppDbContext dbContext) { _logic = new RestaurantLogic(dbContext); }
void Awake() { restaurantLogic = GameLogic.Restaurant; agentComponent = GetComponent <NavMeshAgent>(); }
private void TearDownTests() { repositoryMock = null; sut = null; }
private RestaurantLogic sut; // System under test private void SetupTests() { repositoryMock = new Mock <IRepository <Restaurant> >(); sut = new RestaurantLogic(repositoryMock.Object); }