Example #1
0
        public void UpdateTest()
        {
            VideoModelResponsibility target = new VideoModelResponsibility(); // TODO: Initialize to an appropriate value
            VideoModel model = null;                                          // TODO: Initialize to an appropriate value

            target.Update(model);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Example #2
0
        public void QueryTest()
        {
            VideoModelResponsibility target   = new VideoModelResponsibility(); // TODO: Initialize to an appropriate value
            IQueryable <VideoModel>  expected = null;                           // TODO: Initialize to an appropriate value
            IQueryable <VideoModel>  actual;

            actual = target.Query();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Example #3
0
        public void DeleteTest()
        {
            VideoModelResponsibility target = new VideoModelResponsibility(); // TODO: Initialize to an appropriate value
            VideoModel model = null;                                          // TODO: Initialize to an appropriate value

            model = target.Query().First();
            target.Delete(model);
            target = new VideoModelResponsibility();
            var cc = target.Query().Count(a => a.ID == model.ID);

            Assert.AreEqual <int>(0, cc);
        }
Example #4
0
        public void InsertTest()
        {
            VideoModelResponsibility target = new VideoModelResponsibility(); // TODO: Initialize to an appropriate value
            VideoModel model = null;                                          // TODO: Initialize to an appropriate value

            model          = new VideoModel();
            model.DownLink = "asdsadsa";

            model.Episodes   = 12;
            model.ID         = Guid.NewGuid();
            model.Name_cn    = "测试中文";
            model.Name_en    = "en name";
            model.Remark     = "remark";
            model.TypeName   = "动画:剧场版";
            model.UpdateTime = DateTime.Now;
            target.Insert(model);
            target = new VideoModelResponsibility();
            var cc = target.Query().Count(a => a.ID == model.ID);

            Assert.AreEqual <int>(1, cc);
        }