test/Tester/GrainLevelCallFilterTests.cs
/// <summary>
/// Tests filters on just the grain level when there are no global grain call filters
/// </summary>
Tests filters on just the grain level when there are no global grain call filters
Tests filters on just the grain level when there are no global grain call filters
[Fact]
        public async Task GrainCallFilter_Incoming_GrainLevel_Without_Global_Filter_Test()
        {
            var grain = this.fixture.GrainFactory.GetGrain<IMethodInterceptionGrain>(0);
            var result = await grain.One();
            Assert.Equal("intercepted one with no args", result);
            result = await grain.Echo("stao erom tae");
            Assert.Equal("eat more oats", result);
            result = await grain.NotIntercepted();
            Assert.Equal("not intercepted", result);
            result = await grain.SayHello();
            Assert.Equal("Hello", result);
        }
[ Fact ] public async Task GrainCallFilter_Incoming_GrainLevel_Without_Global_Filter_Test ( ) { var grain = this . fixture . GrainFactory . GetGrain < IMethodInterceptionGrain > ( 0 ) ; var result = await grain . One ( ) ; Assert . Equal ( " " , result ) ; result = await grain . Echo ( " " ) ; Assert . Equal ( " " , result ) ; result = await grain . NotIntercepted ( ) ; Assert . Equal ( " " , result ) ; result = await grain . SayHello ( ) ; Assert . Equal ( " " , result ) ; }
Tests filters on just the grain level when there are no global grain call filters
Tests filters on just the grain level when there are no global grain call filters
// Grain interceptors should receive the MethodInfo of the implementation, not the interface.