public void GeneralSetUp() { Assert.DoesNotThrow(() => { classGenerator = ClassGeneratorFactory.Create(); }, "The call to the factory method must be successful"); Assert.NotNull(classGenerator, "The factory method must return a non-null value"); }
/// <summary> /// Creates a new instance of this class. /// </summary> /// <param name="connection">The connection used for communication with the database</param> public GenerationContext(DbConnection connection) { Connection = Preconditions.CheckNotNull(connection, nameof(connection)); classGenerator = ClassGeneratorFactory.Create(); }