Ejemplo n.º 1
0
        public AppCommandMiddlewareTests()
        {
            A.CallTo(() => contextProvider.Context)
            .Returns(requestContext);

            sut = new AppCommandMiddleware(A.Fake <IGrainFactory>(), contextProvider);
        }
        public AppCommandMiddlewareTests()
        {
            A.CallTo(() => contextProvider.Context)
            .Returns(requestContext);

            sut = new AppCommandMiddleware(A.Fake <IGrainFactory>(), assetStore, assetThumbnailGenerator, contextProvider);
        }
        public AppCommandMiddlewareTests()
        {
            A.CallTo(() => appProvider.GetAppAsync(AppName))
            .Returns((IAppEntity)null);

            A.CallTo(() => userResolver.FindByIdAsync(contributorId))
            .Returns(A.Fake <IUser>());

            sut = new AppCommandMiddleware(Handler, appProvider, appPlansProvider, appPlansBillingManager, userResolver);
        }