Пример #1
0
        public void UpdateRatingTest()
        {
            DbRating dbRating = new DbRating();
            Rating   rating   = null;

            try
            {
                rating = dbRating.FindById(1);
                bool status = dbRating.UserUpdateRating(rating);
                Assert.IsTrue(status);
            }
            catch (FaultException <DbConnectionException> )
            {
                Assert.Fail();
            }
        }
Пример #2
0
 /// <summary>
 /// Updates a rating based on specific parameters in database
 /// </summary>
 /// <param name="rating">Rating</param>
 /// <returns>bool</returns>
 public bool UserUpdateRating(Rating rating)
 {
     return(_dbRating.UserUpdateRating(rating));
 }