Beispiel #1
0
        private OrderedValueObjects <SimpleValueObjectStub> GetOrderedValueObjects()
        {
            var simpleValueObjectStubs = new OrderedValueObjects <SimpleValueObjectStub>(new SimpleValueObjectStubComparer())
            {
                new SimpleValueObjectStub
                {
                    Address = "2",
                    Age     = 23,
                    Date    = new DateTime(2017, 11, 30),
                    Name    = "Nom"
                },
                new SimpleValueObjectStub
                {
                    Address = "3",
                    Age     = 70,
                    Date    = new DateTime(2017, 12, 30),
                    Name    = "Vom"
                },
                new SimpleValueObjectStub
                {
                    Address = "1",
                    Age     = 18,
                    Date    = new DateTime(2017, 10, 30),
                    Name    = "Bom"
                }
            };

            return(simpleValueObjectStubs);
        }
        protected override IEquatable <OrderedValueObjects <SimpleValueObjectStub> > CreateDifferentOrderAndPropertiesValueObjects()
        {
            var simpleValueObjectStubs = new OrderedValueObjects <SimpleValueObjectStub>(new SimpleValueObjectStubComparer())
            {
                new SimpleValueObjectStub
                {
                    Address = "2",
                    Age     = 23,
                    Date    = new DateTime(2017, 11, 30),
                    Name    = "Nom1"
                },
                new SimpleValueObjectStub
                {
                    Address = "1",
                    Age     = 18,
                    Date    = new DateTime(2017, 10, 30),
                    Name    = "Bom"
                },
                new SimpleValueObjectStub
                {
                    Address = "3",
                    Age     = 70,
                    Date    = new DateTime(2017, 12, 30),
                    Name    = "Vom"
                }
            };

            return(simpleValueObjectStubs);
        }