﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on RavenDB session management in ASP.Net Web API</title><description>Ryan,
It was the most obvious thing to do, this is similar to how I handle things in ASP.Net MVC</description><link>http://ayende.com/155265/ravendb-session-management-in-asp-net-web-api#comment6</link><guid>http://ayende.com/155265/ravendb-session-management-in-asp-net-web-api#comment6</guid><pubDate>Wed, 14 Mar 2012 22:17:46 GMT</pubDate></item><item><title>Ryan Riley commented on RavenDB session management in ASP.Net Web API</title><description>Why not create a DelegatingHandler and push that into your configuration? You can push the session object into HttpRequestMessage.Items. Was there a reason you chose to subclass ApiController instead?</description><link>http://ayende.com/155265/ravendb-session-management-in-asp-net-web-api#comment5</link><guid>http://ayende.com/155265/ravendb-session-management-in-asp-net-web-api#comment5</guid><pubDate>Wed, 14 Mar 2012 18:54:09 GMT</pubDate></item><item><title>Ayende Rahien commented on RavenDB session management in ASP.Net Web API</title><description>Ashic,
We use one in memory store per test.</description><link>http://ayende.com/155265/ravendb-session-management-in-asp-net-web-api#comment4</link><guid>http://ayende.com/155265/ravendb-session-management-in-asp-net-web-api#comment4</guid><pubDate>Wed, 14 Mar 2012 11:02:51 GMT</pubDate></item><item><title>ashic commented on RavenDB session management in ASP.Net Web API</title><description>Had a similar question in mind - do you recommend firing up an in memory raven db per unit test or fire one up and use for a batch of tests. Is there any performance issue in firing up an in memory store (since using a fresh one per test would be purer).</description><link>http://ayende.com/155265/ravendb-session-management-in-asp-net-web-api#comment3</link><guid>http://ayende.com/155265/ravendb-session-management-in-asp-net-web-api#comment3</guid><pubDate>Wed, 14 Mar 2012 10:36:57 GMT</pubDate></item><item><title>Ayende Rahien commented on RavenDB session management in ASP.Net Web API</title><description>Tugberk,
RavenDB can run in pure in memory mode, perfect for unit testing.</description><link>http://ayende.com/155265/ravendb-session-management-in-asp-net-web-api#comment2</link><guid>http://ayende.com/155265/ravendb-session-management-in-asp-net-web-api#comment2</guid><pubDate>Wed, 14 Mar 2012 08:32:37 GMT</pubDate></item><item><title>Tugberk commented on RavenDB session management in ASP.Net Web API</title><description>Just curious, I am fairly new to RavenDb and so far, I have seen that mocking is not the way we test along with RavenDb.

But in above case, don't we direct dependency on DocumentStore? For an ASP.NET Web API application which has unit testing in mind, what would you recommend?</description><link>http://ayende.com/155265/ravendb-session-management-in-asp-net-web-api#comment1</link><guid>http://ayende.com/155265/ravendb-session-management-in-asp-net-web-api#comment1</guid><pubDate>Wed, 14 Mar 2012 08:24:59 GMT</pubDate></item></channel></rss>