Exemplo n.º 1
0
 public MockUserRepository(MockDataProvider dataProvider = null)
 {
     if (dataProvider == null)
     {
         Users = new Dictionary <string, User>();
     }
     else
     {
         Users = dataProvider.Users;
     }
 }
Exemplo n.º 2
0
 public MockBlogRepository(MockDataProvider dataProvider = null)
 {
     if (dataProvider == null)
     {
         Blogs = new Dictionary <string, Blog>();
     }
     else
     {
         Blogs = dataProvider.Blogs;
     }
 }
Exemplo n.º 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
         };
     }
 }