public void NotificationQueries_SelectUpdateLastVisitTest() { //параметры Exception exception; var logger = new ShoutExceptionLogger(); NotificationQueries target = new NotificationQueries(logger , SignaloBotTestParameters.ConnectionString, SignaloBotTestParameters.SqlPrefix); int firstIndex = 1; int lastIndex = 10; bool updateLastVisit = true; int total; //проверка List<Notification> notifies = target.SelectUpdateLastVisit(SignaloBotTestParameters.ExistingUserID , updateLastVisit, out total, firstIndex, lastIndex, out exception); }
public void NotificationQueries_UpdateDirtyTest() { //параметры Exception exception; var logger = new ShoutExceptionLogger(); NotificationQueries target = new NotificationQueries(logger , SignaloBotTestParameters.ConnectionString, SignaloBotTestParameters.SqlPrefix); int total; List<Notification> notifies = target.SelectUpdateLastVisit(SignaloBotTestParameters.ExistingUserID , false, out total, 0, 10, out exception); //проверка target.UpdateDirty(notifies, out exception); }