Example #1
0
        public void the_specification_should_reflect_the_querystring_arguments()
        {
            const string dateOfLastReport = "2010-05-23Z";

            string[] fooIdentifiers = { "FooId1", "FooId2", "FooId3", "FooId4" };
            string   requestUri     = String.Format("/queries/FooReportResource?LastReportDate={0}&ApplicableFoos={1}"
                                                    , dateOfLastReport
                                                    , String.Join(",", fooIdentifiers));

            given_request("GET", requestUri);
            when_reading_response();
            TheResponse.AsFooReportResource().Foo.ShouldBe(
                new FooBuilder(DateTime.Parse(dateOfLastReport)
                               , fooIdentifiers).ToString());
        }