private RandomCheeseFactory(Random random) { this.random = random; cheeseKindFactory = RandomCheeseKindFactory.CreateFactory(this.random); cheeseFatnessFactory = RandomCheeseFatnessFactory.CreateFactory(this.random); cheeseCoverFactory = RandomCheeseCoverFactory.CreateFactory(this.random); }
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); }