コード例 #1
0
        public void Should_return_original_set_when_recipe_has_no_parameters_specified( )
        {
            Recipe testKitchen = new Recipe( );

            var data = new SampleRepository().GetSampleData( );

            var roasted = data.Roast( testKitchen );

            Assert.AreEqual( 2, roasted.Count( ) );
        }
コード例 #2
0
        public void Should_return_one_record_when_one_filter_is_requested( )
        {
            Recipe testKitchen = new Recipe
                                     {
                                         Instructions = new[ ]
                                                      {
                                                          "Address eq 'Test 1'"
                                                      }
                                     };

            var data = new SampleRepository( ).GetSampleData( );

            var roasted = data.Roast( testKitchen );

            Assert.AreEqual( 1, roasted.Count( ) );
        }