static void Main(string[] args)
        {
            using( var recipes = new LocalRecipeBook() )
            {
                var cabinet = new DrinksCabinet( recipes );

            }
        }
        public void CanLocateSpecificDrinkByName()
        {
            var cabinet = new DrinksCabinet( recipes );

            var expected = new LocalDrink( "a", "", new[] {
                new Ingredient( "1", Measurement.Tsp, 1 )
            } );
            var error = new LocalDrink( "b", "", new[] {
                new Ingredient( "2", Measurement.Tsp, 1 )
            } );

            recipes.Add( expected, error );

            var result = cabinet.Find( expected.Name );

            Assert.AreEqual( expected, result );
        }
        public void CanFilterDrinksOnNotSpecified()
        {
            var cabinet = new DrinksCabinet( recipes );

            var expected = new LocalDrink( "a", "", new[] {
                new Ingredient( "1", Measurement.Tsp, 1 )
            } );
            var error = new LocalDrink( "b", "", new[] {
                new Ingredient( "2", Measurement.Tsp, 1 )
            } );

            recipes.Add( expected, error );

            var results = cabinet.NotContaining( "2" );

            Assert.AreEqual( expected, results.Single() );
        }
 public void EmptyCabinetHasNoIngredients()
 {
     var cabinet = new DrinksCabinet( recipes );
     var results = cabinet.Ingredients;
     Assert.IsFalse( results.Any() );
 }