public RavenDbSessionStoreFixture()
        {
            this.documentStore = A.Fake<IDocumentStore>();
            this.documentSession = A.Fake<IDocumentSession>();
            A.CallTo(() => this.documentStore.OpenSession()).Returns(this.documentSession);

            sessionStore = new RavenDbSessionStore(this.cryptographyConfiguration, this.documentStore);
        }
Ejemplo n.º 2
0
        public RavenDbSessionStoreFixture()
        {
            this.documentStore   = A.Fake <IDocumentStore>();
            this.documentSession = A.Fake <IDocumentSession>();
            A.CallTo(() => this.documentStore.OpenSession()).Returns(this.documentSession);

            sessionStore = new RavenDbSessionStore(this.cryptographyConfiguration, this.documentStore);
        }
        public void Should_throw_argumentnullexception_when_no_documentstore_given()
        {
            // Given
            var result = Record.Exception(() =>
            {
                var store = new RavenDbSessionStore(A.Fake<CryptographyConfiguration>(), null);
            });

            // Then
            result.ShouldBeType<ArgumentNullException>();
        }
Ejemplo n.º 4
0
        public void Should_throw_argumentnullexception_when_no_documentstore_given()
        {
            // Given
            var result = Record.Exception(() =>
            {
                var store = new RavenDbSessionStore(A.Fake <CryptographyConfiguration>(), null);
            });

            // Then
            result.ShouldBeType <ArgumentNullException>();
        }