コード例 #1
0
        public ContentCommandMiddlewareTests()
        {
            A.CallTo(() => contextProvider.Context)
            .Returns(requestContext);

            sut = new ContentCommandMiddleware(A.Fake <IGrainFactory>(), contentEnricher, contextProvider);
        }
コード例 #2
0
        public ContentCommandMiddlewareTests()
        {
            requestContext = Context.Anonymous(Mocks.App(AppNamedId));

            A.CallTo(() => contextProvider.Context)
            .Returns(requestContext);

            sut = new ContentCommandMiddleware(A.Fake <IGrainFactory>(), contentEnricher, contextProvider);
        }