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 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>(); }
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>(); }