/// <summary> /// Call this method before calling any of the Set methods in order to update fields for this user /// Once all necessary Set methods have been called, call UpdateDetails to execute the update /// </summary> public void BeginUpdateDetails() { _updateReader = InputContext.CreateDnaDataReader("updateuser2"); _updateReader.AddParameter("@userid", _userID); _updateReader.AddParameter("@siteid", InputContext.CurrentSite.SiteID); }
private void GetCommentForum(IDnaDataReader reader) { reader.AddParameter("@uid", _uid) .AddParameter("@url", "http://www.bbc.co.uk/comment.shtml") .AddParameter("@title", "Comment test") .AddParameter("@siteid", 54) .AddParameter("@frompostindex", 0) .AddParameter("topostindex", 0) .AddParameter("@show", 5) .AddParameter("@createifnotexists", 1) .AddParameter("@duration", 1000) .AddParameter("@moderationstatus", 3); reader.Execute(); Assert.IsTrue(reader.Read(), "Checking that getcommentforum returns a row containing the forum details"); }