WebApplications.Testing.Data.SqlExceptionPrototype.GenerateCollection C# (CSharp) Method

GenerateCollection() protected static method

Generates the collection.
protected static GenerateCollection ( int infoNumber, byte errorState, byte errorClass, string errorMessage ) : SqlErrorCollection
infoNumber int
errorState byte
errorClass byte
errorMessage string
return System.Data.SqlClient.SqlErrorCollection
        protected static SqlErrorCollection GenerateCollection(
            int infoNumber,
            byte errorState,
            byte errorClass,
            string errorMessage)
        {
            return new
                SqlErrorCollectionPrototype
            {
                new SqlErrorPrototype(infoNumber, errorState, errorClass, errorMessage: errorMessage)
            };
        }
    }