public static void ClassInit(TestContext context) { var Session = new MongoDBSession(); Session.Connect(); Repository = new UserRepository(Session); }
/// <summary> /// Create a new instance of <see cref="UserRepository"/>. /// </summary> /// <param name="session">The MongoDB session.</param> public UserRepository(MongoDBSession session) : base(session) { }
/// <summary> /// Initialize a new instance of <see cref="RepositoryBase"/>. /// </summary> /// <param name="session">The MongoDB session.</param> protected RepositoryBase(MongoDBSession session) { _session = session; }