public void DefaultParameterAspectTest()
        {
            var requestMock = new Mock <IRestRequest>(MockBehavior.Strict);

            var aspect = new GetInformationOfRequestAspect();

            aspect.ApplyToRestRequest(requestMock.Object);

            requestMock.Verify();
            requestMock.VerifyNoOtherCalls();
        }
        public void ParameterAspectTest()
        {
            var requestMock = new Mock <IRestRequest>(MockBehavior.Strict);

            requestMock
            .Setup(i => i.AddParameter("expand", "plans.plan.branches"))
            .Returns(requestMock.Object)
            .Verifiable();

            var aspect = new GetInformationOfRequestAspect();

            aspect.IncludePlanInformation(i => i.IncludeBranches());
            aspect.ApplyToRestRequest(requestMock.Object);

            requestMock.Verify();
            requestMock.VerifyNoOtherCalls();
        }