public async Task non_supported_method_on_all_stream(HttpMethod method, string path) { using (var fixture = new MiddlewareFixture( ReadAllStreamMiddleware.UseStreamStore(_streamStore)(_methodNotAllowed))) { var response = await fixture.HttpClient.SendAsync(new HttpRequestMessage(method, path)); response.StatusCode.ShouldBe(HttpStatusCode.MethodNotAllowed); } }
public StreamNavigationTests() { _fixture = new MiddlewareFixture(); }
public SqlStreamStoreHalMiddlewareFixture() { StreamStore = new InMemoryStreamStore(); _inner = new MiddlewareFixture(SqlStreamStoreHalMiddleware.UseSqlStreamStoreHal(StreamStore)); }
public StreamMessageTests() { _fixture = new MiddlewareFixture(); }