Esempio n. 1
0
        public void Composite_Collect_Recall()
        {
            var something =
                new SomethingComplexToGenerate
            {
                Something = Generate.One <SomethingToGenerate>()
            };

            var theGatherer =
                Gather
                .From(something)
                .From(c => c.Something,
                      g => g.Collect(s => s.MyProperty));

            Assert.Equal(
                something.Something.MyProperty,
                theGatherer
                .RecallFrom(c => c.Something)
                .Recall(s => s.MyProperty));
        }
Esempio n. 2
0
        public void Tdd()
        {
            var something =
                new SomethingComplexToGenerate
            {
                MySomethingToGenerate = Generate.One <SomethingToGenerate>()
            };

            var theGatherer =
                Gather
                .From(something)
                .From(c => c.MySomethingToGenerate,
                      g => g.Collect(s => s.MyProperty));

            Assert.Equal(
                something.MySomethingToGenerate.MyProperty,
                theGatherer
                .RecallFrom(c => c.MySomethingToGenerate)
                .Recall(s => s.MyProperty));
        }
        public void Composite_Collect_Recall()
        {
            var something =
                new SomethingComplexToGenerate
                    {
                        Something = Generate.One<SomethingToGenerate>()
                    };

            var theGatherer =
                Gather
                    .From(something)
                    .From(c => c.Something,
                        g => g.Collect(s => s.MyProperty));

            Assert.Equal(
                something.Something.MyProperty,
                theGatherer
                    .RecallFrom(c => c.Something)
                    .Recall(s => s.MyProperty));
        }
        public void Tdd()
        {
            var something =
                new SomethingComplexToGenerate
                {
                    MySomethingToGenerate = Generate.One<SomethingToGenerate>()
                };

            var theGatherer =
                Gather
                    .From(something)
                    .From(c => c.MySomethingToGenerate,
                        g => g.Collect(s => s.MyProperty));

            Assert.Equal(
                something.MySomethingToGenerate.MyProperty,
                theGatherer
                    .RecallFrom(c => c.MySomethingToGenerate)
                    .Recall(s => s.MyProperty));
        }