Exemple #1
0
        public virtual void TestInitialize()
        {
            var bakery  = new Bakery();
            var butcher = new Butcher();

            burritoShop = new BurritoShop(bakery, butcher);
        }
Exemple #2
0
        private void buttonSave_Click(object sender, EventArgs e)
        {
            bool chilco_was_running = Butcher.KillProcess("chilco");

            FileIO.SaveGroups(Groups.ToArray());
            if (chilco_was_running)
            {
                Process.Start(Directory.GetCurrentDirectory() + "\\chilco.exe");
            }
        }
Exemple #3
0
    public override bool CheckForNeighbouringBuildings()
    {
        Debug.Log("Checks for Butcher");
        List <Butcher> chainBuildings = GetNeighbouringBuildings <Butcher>();

        if (nextInChain == null && chainBuildings.Count >= 1)
        {
            Debug.Log(">= 1");
            nextInChain = chainBuildings[0];
            return(true);
        }

        return(false);
    }
        public static ICutter CreateCutter(string cutter)
        {
            ICutter tmp;

            switch (cutter)
            {
            case "actor":
                tmp = new Actor();
                break;

            case "barber":
                tmp = new Barber();
                break;

            // ReSharper disable once RedundantCaseLabel
            case "butcher":
            default:
                tmp = new Butcher();
                break;
            }
            return(tmp);
        }