public void ReadRatingTest() { DbRating dbRating = new DbRating(); Rating rating = null; try { rating = dbRating.FindById(1); Assert.IsNotNull(rating); } catch (FaultException <DbConnectionException> ) { Assert.Fail(); } }
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(); } }