Пример #1
0
        public static void ClassInit(TestContext context)
        {
            var Session = new MongoDBSession();

            Session.Connect();
            Repository = new UserRepository(Session);
        }
Пример #2
0
 /// <summary>
 /// Create a new instance of <see cref="UserRepository"/>.
 /// </summary>
 /// <param name="session">The MongoDB session.</param>
 public UserRepository(MongoDBSession session)
     : base(session)
 {
 }
Пример #3
0
 /// <summary>
 /// Initialize a new instance of <see cref="RepositoryBase"/>.
 /// </summary>
 /// <param name="session">The MongoDB session.</param>
 protected RepositoryBase(MongoDBSession session)
 {
     _session = session;
 }