예제 #1
0
    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;
            }
        }
    }
예제 #2
0
 public RestaurantController(AppDbContext dbContext)
 {
     _logic = new RestaurantLogic(dbContext);
 }
예제 #3
0
 void Awake()
 {
     restaurantLogic = GameLogic.Restaurant;
     agentComponent  = GetComponent <NavMeshAgent>();
 }
예제 #4
0
 private void TearDownTests()
 {
     repositoryMock = null;
     sut            = null;
 }
예제 #5
0
        private RestaurantLogic sut; // System under test

        private void SetupTests()
        {
            repositoryMock = new Mock <IRepository <Restaurant> >();
            sut            = new RestaurantLogic(repositoryMock.Object);
        }