예제 #1
0
        public void ReadRatingTest()
        {
            DbRating dbRating = new DbRating();
            Rating   rating   = null;

            try
            {
                rating = dbRating.FindById(1);
                Assert.IsNotNull(rating);
            }
            catch (FaultException <DbConnectionException> )
            {
                Assert.Fail();
            }
        }
예제 #2
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();
            }
        }