Beispiel #1
0
        public RuleCommandMiddlewareTests()
        {
            A.CallTo(() => appProvider.GetSchemaAsync(A <string> .Ignored, A <Guid> .Ignored, false))
            .Returns(A.Fake <ISchemaEntity>());

            rule = new RuleDomainObject(ruleId, -1);

            sut = new RuleCommandMiddleware(Handler, appProvider);
        }
        public RuleCommandMiddlewareTests()
        {
            A.CallTo(() => schemas.FindSchemaByIdAsync(A <Guid> .Ignored, false))
            .Returns(A.Fake <ISchemaEntity>());

            rule = new RuleDomainObject(ruleId, -1);

            sut = new RuleCommandMiddleware(Handler, schemas);
        }