Exemplo n.º 1
0
            public static DataReaderFactory.TestDatabaseRow CreatePostNeedsRiskAssessmentRow(int eventId, DateTime eventDate, int? threadEntryId, int modClassId, int siteId, 
                                                                                                int forumId, int threadId, int userId, DateTime datePosted, string text, 
                                                                                                int riskModThreadEntryQueueId)
            {
                var row = new BIEventTestDatabaseRow(eventId, EventTypes.ET_POSTNEEDSRISKASSESSMENT, eventDate);

                row.AddGetNullableInt32ColumnValue("ThreadEntryId", threadEntryId);
                row.AddGetInt32ColumnValue("ModClassId", modClassId);
                row.AddGetInt32ColumnValue("SiteId", siteId);
                row.AddGetInt32ColumnValue("ForumId", forumId);
                row.AddGetInt32ColumnValue("ThreadId", threadId);
                row.AddGetInt32ColumnValue("UserId", userId);
                row.AddGetDateTimeColumnValue("DatePosted", datePosted);
                row.AddGetStringColumnValue("text", text);
                row.AddGetInt32ColumnValue("RiskModThreadEntryQueueId", riskModThreadEntryQueueId);

                return row;
            }
Exemplo n.º 2
0
            /// <summary>
            /// BIEventTestDatabaseRow
            /// </summary>
            /// <remarks>
            /// The params should match the result set from getbievents.sql
            /// </remarks>
            public static DataReaderFactory.TestDatabaseRow CreatePostToForumRow(int eventId, DateTime eventDate, int threadEntryId, int modClassId,
                                                                                 int siteId, int forumId, int threadId, int userId, int? nextSibling, int? parent,
                                                                                 int? prevSibling, int? firstChild, DateTime datePosted, string text)
            {
                var row = new BIEventTestDatabaseRow(eventId, EventTypes.ET_POSTTOFORUM, eventDate);

                row.AddGetInt32ColumnValue("ThreadEntryId", threadEntryId);
                row.AddGetInt32ColumnValue("ModClassId", modClassId);
                row.AddGetInt32ColumnValue("SiteId", siteId);
                row.AddGetInt32ColumnValue("ForumId", forumId);
                row.AddGetInt32ColumnValue("ThreadId", threadId);
                row.AddGetInt32ColumnValue("UserId", userId);
                row.AddGetNullableInt32ColumnValue("NextSibling", nextSibling);
                row.AddGetNullableInt32ColumnValue("Parent", parent);
                row.AddGetNullableInt32ColumnValue("PrevSibling", prevSibling);
                row.AddGetNullableInt32ColumnValue("FirstChild", firstChild);
                row.AddGetDateTimeColumnValue("DatePosted", datePosted);
                row.AddGetStringColumnValue("text", text);

                return row;
            }