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(); } }
/// <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)); }