Exemple #1
0
 public MockUserRepository(MockDataProvider dataProvider = null)
 {
     if (dataProvider == null)
     {
         Users = new Dictionary <string, User>();
     }
     else
     {
         Users = dataProvider.Users;
     }
 }
Exemple #2
0
 public MockBlogRepository(MockDataProvider dataProvider = null)
 {
     if (dataProvider == null)
     {
         Blogs = new Dictionary <string, Blog>();
     }
     else
     {
         Blogs = dataProvider.Blogs;
     }
 }
Exemple #3
0
 public MockPostRepository(MockDataProvider dataProvider = null)
 {
     if (dataProvider == null)
     {
         Posts = new Dictionary <string, Post>();
     }
     else
     {
         Posts = dataProvider.Posts;
     }
 }
 public MockPlatformConfigurationRepository(MockDataProvider dataProvider = null)
 {
     if (dataProvider == null)
     {
         PlatformConfiguration = new PlatformConfiguration()
         {
             PlatformName  = "Sartre",
             DefaultBlogId = null
         };
     }
     else
     {
         PlatformConfiguration = new PlatformConfiguration()
         {
             PlatformName  = "Sartre",
             DefaultBlogId = dataProvider.DefaultBlogId
         };
     }
 }