Exemplo n.º 1
0
        public AssemblyDataGenerator()
        {
            var docUtility    = new DataGeneratorUtility(new NameGenerator());
            var idGen         = new CommentIDGenerator();
            var typeUtility   = new TypeDataUtility(docUtility);
            var methodUtility = new MethodBaseUtility(docUtility, idGen);

            methodGen   = new MethodDataGenerator(docUtility, methodUtility);
            classGen    = new ClassDataGenerator(docUtility, typeUtility, idGen);
            enumGen     = new EnumDataGenerator(docUtility, typeUtility, idGen);
            eventGen    = new EventDataGenerator(docUtility, methodUtility, idGen);
            fieldGen    = new FieldDataGenerator(docUtility, idGen);
            propertyGen = new PropertyDataGenerator(docUtility, methodUtility, idGen);
            ctorGen     = new ConstructorDataGenerator(methodUtility);
            operatorGen = new OperatorDataGenerator(methodGen);
        }
Exemplo n.º 2
0
 public void SetUp()
 {
     nameGen = Substitute.For <INameGenerator>();
     utility = new DataGeneratorUtility(nameGen);
 }