Esempio n. 1
0
 public void Init()
 {
     b1 = new Blog("blabla", "blabla");
     b2 = new Blog("blbal", "ujbghu");
     t1 = new Topic("blb");
     t2 = new Topic("blabla");
 }
Esempio n. 2
0
 public void hello()
 {
     var blog = new Blog {Name = "this is the blog"};
     var bloggingContext = new BloggingContext();
     bloggingContext.Blogs.Add(blog);
     bloggingContext.SaveChanges();
 }
Esempio n. 3
0
        public void Init()
        {
            blog1 = new Blog("blabla1", "blablbal2");
            blog2 = new Blog("blabla1", "blablbal2");
            blog3 = new Blog("blabla1", "blablbal2");

            tag1 = new Tag("test tag 1");
            tag2 = new Tag("test tag 2");
            tag3 = new Tag("test tag 3");
            tag4 = new Tag("test tag 4");

            u1 = new User("Ivo", "Katunarić", 25);
            u2 = new User("Ivo", "Katunarić", 25);
            u3 = new User("Ivo", "Katunarić", 25);
        }
Esempio n. 4
0
        public void Init()
        {
            user1 = new User("Ivo", "Katunarić", 25);
            user2 = new User("Ivo", "Katunarić", 25);
            user3 = new User("Ivo", "Katunarić", 25);

            blog1 = new Blog("Test blog1", "This is sie text of my blog1");
            blog2 = new Blog("Test blog1", "This is sie text of my blog1");
            blog3 = new Blog("Test blog1", "This is sie text of my blog1");
            blog4 = new Blog("Test blog1", "This is sie text of my blog1");
        }