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

            var aspect = new GetInformationOfBuildParameterAspect();

            aspect.ApplyToRestRequest(requestMock.Object);

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

            requestMock
            .Setup(i => i.AddParameter("expand", "comments", ParameterType.QueryString))
            .Returns(requestMock.Object)
            .Verifiable();

            var aspect = new GetInformationOfBuildParameterAspect();

            aspect.IncludeBuildInformation(i => i.IncludingComments());
            aspect.ApplyToRestRequest(requestMock.Object);

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