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