コード例 #1
0
        private RandomContractFactory(Random random)
        {
            this.random = random;

            cheeseKindFactory = RandomCheeseKindFactory.CreateFactory(this.random);
            cheeseFatnessFactory = RandomCheeseFatnessFactory.CreateFactory(this.random);
            cheeseCoverFactory = RandomCheeseCoverFactory.CreateFactory(this.random);

            wheatGradeFactory = RandomWheatGradeFactory.CreateFactory(this.random);
            wheatHardnessFactory = RandomWheatHardnessFactory.CreateFactory(this.random);
        }
コード例 #2
0
 private RandomWheatFactory(Random random)
 {
     this.random = random;
     wheatGradeFactory = RandomWheatGradeFactory.CreateFactory(this.random);
     wheatHardnessFactory = RandomWheatHardnessFactory.CreateFactory(this.random);
 }