コード例 #1
0
 public void UpdateReferrerTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     Referrer referrer = null; // TODO: Initialize to an appropriate value
     target.UpdateReferrer(referrer);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
コード例 #2
0
        public void InsertPage()
        {
            MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
            Page page = new Page
            {
                Title = "test title",
                Description = "test desc",
                Content = "test content",
                DateCreated = DateTime.MinValue,
                DateModified = DateTime.MinValue,
            };
            target.InsertPage(page);

        }
コード例 #3
0
 public void MongoDBBlogProviderConstructorTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
コード例 #4
0
 public void DeleteBlogRollItemTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     BlogRollItem blogRollItem = null; // TODO: Initialize to an appropriate value
     target.DeleteBlogRollItem(blogRollItem);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
コード例 #5
0
 public void DeleteCategoryTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     Category category = null; // TODO: Initialize to an appropriate value
     target.DeleteCategory(category);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
コード例 #6
0
 public void FillBlogRollTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     List<BlogRollItem> expected = null; // TODO: Initialize to an appropriate value
     List<BlogRollItem> actual;
     actual = target.FillBlogRoll();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #7
0
 public void InsertPageTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     Page page = new Page
     {
         Title="test title",
         Description="test desc",
         Content="test content",
     };
     target.InsertPage(page);
 }
コード例 #8
0
 public void SelectProfileTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     string id = string.Empty; // TODO: Initialize to an appropriate value
     AuthorProfile expected = null; // TODO: Initialize to an appropriate value
     AuthorProfile actual;
     actual = target.SelectProfile(id);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #9
0
 public void LoadFromDataStoreTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     ExtensionType exType = new ExtensionType(); // TODO: Initialize to an appropriate value
     string exId = string.Empty; // TODO: Initialize to an appropriate value
     object expected = null; // TODO: Initialize to an appropriate value
     object actual;
     actual = target.LoadFromDataStore(exType, exId);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #10
0
 public void LoadPingServicesTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     StringCollection expected = null; // TODO: Initialize to an appropriate value
     StringCollection actual;
     actual = target.LoadPingServices();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #11
0
        public void LoadSettingsTest()
        {
            MongoDBBlogProvider target = new MongoDBBlogProvider();
            StringDictionary actual;
            actual = target.LoadSettings();

            Assert.IsNotNull(actual);
            Assert.AreNotEqual(actual.Count, 0);

        }
コード例 #12
0
 public void RemoveFromDataStoreTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     ExtensionType exType = new ExtensionType(); // TODO: Initialize to an appropriate value
     string exId = string.Empty; // TODO: Initialize to an appropriate value
     target.RemoveFromDataStore(exType, exId);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
コード例 #13
0
 public void SavePingServicesTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     StringCollection services = null; // TODO: Initialize to an appropriate value
     target.SavePingServices(services);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
コード例 #14
0
 public void SaveSettingsTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     StringDictionary settings = new StringDictionary();
     settings.Add("key1", "value1");
     settings.Add("key2", "value2");
     target.SaveSettings(settings);
 }
コード例 #15
0
 public void SelectBlogRollItemTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     Guid Id = new Guid(); // TODO: Initialize to an appropriate value
     BlogRollItem expected = null; // TODO: Initialize to an appropriate value
     BlogRollItem actual;
     actual = target.SelectBlogRollItem(Id);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #16
0
 public void UpdateProfileTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     AuthorProfile profile = null; // TODO: Initialize to an appropriate value
     target.UpdateProfile(profile);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
コード例 #17
0
        public void InsertPostTest()
        {
            MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
            Post post = new Post();
            post.Id = new Guid();
            post.Title = "tittle1";
            post.Tags.Add("tag1");
            post.Tags.Add("tag2");

            post.Comments.Add(new Comment() { Id = new Guid(), Content = "content1" });
            post.Comments.Add(new Comment() { Id = new Guid(), Content = "content2" });
            target.InsertPost(post);
        }
コード例 #18
0
 public void StorageLocationTest()
 {
     MongoDBBlogProvider target = new MongoDBBlogProvider(); // TODO: Initialize to an appropriate value
     string expected = string.Empty; // TODO: Initialize to an appropriate value
     string actual;
     actual = target.StorageLocation();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }