コード例 #1
0
 public MartenRoleStoreTests(ITestOutputHelper testOutputHelper)
 {
     _fixture          = new Fixture();
     _testOutputHelper = testOutputHelper;
     _documentStore    = new Mock <IDocumentStore>();
     _roleStore        = new MartenRoleStore <IdentityRole>(_documentStore.Object, new NullLogger <MartenRoleStore <IdentityRole> >());
 }
コード例 #2
0
        public MartenRoleStoreTests(ITestOutputHelper testOutputHelper)
        {
            _testOutputHelper = testOutputHelper;
            _fixture          = new Fixture();

            var store = DocumentStoreManager.GetMartenDocumentStore(typeof(MartenRoleStoreTests));

            _roleStore = new MartenRoleStore <IdentityRole>(store, new NullLogger <MartenRoleStore <IdentityRole> >());
        }
コード例 #3
0
        public MartenRoleStoreTests(ITestOutputHelper testOutputHelper, PostgresSqlFixture postgresSqlFixture)
        {
            _testOutputHelper = testOutputHelper;
            _fixture          = new Fixture();

            var store = DocumentStoreManager.GetMartenDocumentStore(typeof(MartenRoleStoreTests), postgresSqlFixture.ConnectionString);

            _roleStore = new MartenRoleStore <IdentityRole>(store, new NullLogger <MartenRoleStore <IdentityRole> >());
        }