public void WillFindMemberOnClassWithExplicitInterface()
        {
            var context = new Mock <IDurableEntityContext>();

            context.Setup(ctx => ctx.OperationName).Returns("Add");

            var method = DurableEntityContext.FindMethodForContext <CounterExplicit>(context.Object);

            Assert.NotNull(method);
        }
        public void WillReceiveNullForMissingMember()
        {
            var context = new Mock <IDurableEntityContext>();

            context.Setup(ctx => ctx.OperationName).Returns("NonExistingMethod");

            var method = DurableEntityContext.FindMethodForContext <ClassWithoutInterface>(context.Object);

            Assert.Null(method);
        }