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);
            }
        }
Esempio n. 2
0
 public StreamNavigationTests()
 {
     _fixture = new MiddlewareFixture();
 }
Esempio n. 3
0
 public SqlStreamStoreHalMiddlewareFixture()
 {
     StreamStore = new InMemoryStreamStore();
     _inner      = new MiddlewareFixture(SqlStreamStoreHalMiddleware.UseSqlStreamStoreHal(StreamStore));
 }
Esempio n. 4
0
 public StreamMessageTests()
 {
     _fixture = new MiddlewareFixture();
 }