public void HandlesStringQueryParameters()
            {

                var queryAction = new QueryAction();
                queryAction.AddQuery(new SiteInfoMetaQuery
                {
                    LanguageCode = "es",
                });

                var parameters = queryAction.BuildParameterList();

                Assert.Equal(parameters["siinlanguagecode"], "es");
            }
            public void HandlesFlagEnumQueryParameters()
            {

                var queryAction = new QueryAction();
                queryAction.AddQuery(new SiteInfoMetaQuery
                {
                    Properties = SiteInfoProperties.DbReplicationLag | SiteInfoProperties.Extensions,
                });

                var parameters = queryAction.BuildParameterList();

                Assert.Equal(parameters["siprop"], "dbrepllag|extensions");
            }
            public void HandlesBoolQueryParameters()
            {

                var queryAction = new QueryAction();
                queryAction.AddQuery(new SiteInfoMetaQuery
                {
                    ShowAllDb = true,
                });

                var parameters = queryAction.BuildParameterList();

                Assert.Equal(parameters["sishowalldb"], "true");
            }
            public void HasProperModuleParameters()
            {
                var queryAction = new QueryAction();
                queryAction.AddQuery(new AllPagesListQuery());
                queryAction.AddQuery(new AllUsersListQuery());
                queryAction.AddQuery(new SiteInfoMetaQuery());

                var parameters = queryAction.BuildParameterList();

                Assert.Equal(parameters["list"], "allpages|allusers");
                Assert.Equal(parameters["meta"], "siteinfo");
                Assert.False(parameters.ContainsKey("prop"));
            }
            public void HandlesStringQueryParameters()
            {
                var queryAction = new QueryAction();

                queryAction.AddQuery(new SiteInfoMetaQuery
                {
                    LanguageCode = "es",
                });

                var parameters = queryAction.BuildParameterList();

                Assert.Equal(parameters["siinlanguagecode"], "es");
            }
            public void HandlesBoolQueryParameters()
            {
                var queryAction = new QueryAction();

                queryAction.AddQuery(new SiteInfoMetaQuery
                {
                    ShowAllDb = true,
                });

                var parameters = queryAction.BuildParameterList();

                Assert.Equal(parameters["sishowalldb"], "true");
            }
            public void HandlesFlagEnumQueryParameters()
            {
                var queryAction = new QueryAction();

                queryAction.AddQuery(new SiteInfoMetaQuery
                {
                    Properties = SiteInfoProperties.DbReplicationLag | SiteInfoProperties.Extensions,
                });

                var parameters = queryAction.BuildParameterList();

                Assert.Equal(parameters["siprop"], "dbrepllag|extensions");
            }
            public void HasProperModuleParameters()
            {
                var queryAction = new QueryAction();

                queryAction.AddQuery(new AllPagesListQuery());
                queryAction.AddQuery(new AllUsersListQuery());
                queryAction.AddQuery(new SiteInfoMetaQuery());

                var parameters = queryAction.BuildParameterList();

                Assert.Equal(parameters["list"], "allpages|allusers");
                Assert.Equal(parameters["meta"], "siteinfo");
                Assert.False(parameters.ContainsKey("prop"));
            }