public void should_create_repository()
 {
     var mockFactory = new FakeMongoDatabaseFactory();
     var sut = new RepositoryFactory(mockFactory);
     var result = sut.Create<User>(new RepositoryOptions("lorem", "ipsum", "users"));
     result.Should().NotBeNull();
     result.CollectionName.ShouldBeEquivalentTo("users");
 }
        public void collections_should_be_initialized()
        {
            var mockFactory = new FakeMongoDatabaseFactory();
            var repoFactory = new RepositoryFactory(mockFactory);
            var sut = new CommandsDbContext(repoFactory, "lorem", "ipsum");

            sut.Users.Should().NotBeNull();
            sut.Users.CollectionName.ShouldBeEquivalentTo("users");

            sut.Areas.Should().NotBeNull();
            sut.Areas.CollectionName.ShouldBeEquivalentTo("areas");

            sut.Ideas.Should().NotBeNull();
            sut.Ideas.CollectionName.ShouldBeEquivalentTo("ideas");

            sut.IdeaComments.Should().NotBeNull();
            sut.IdeaComments.CollectionName.ShouldBeEquivalentTo("ideaComments");
        }