Esempio n. 1
0
        public static void ClassInit(TestContext context)
        {
            var Session = new MongoDBSession();

            Session.Connect();
            Repository = new UserRepository(Session);
        }
Esempio n. 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)
 {
 }
Esempio n. 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;
 }