Ejemplo n.º 1
0
        public void SampleCreateExampleOfGenericExampleClassForCreateT3()
        {
            var genericExampleClass = new GenericExampleClass <RequiredClass <string>,
                                                               RequiredClass <string>,
                                                               DateTime,
                                                               ComplexRequiredGenericClass2 <RequiredClass <string> > >(5);

            // So to call CreateT1 with business value above steps needs to setup with fakes.
            var x = genericExampleClass.CreateT3();
        }
Ejemplo n.º 2
0
        public void SampleCreateExampleOfGenericExampleClassForComplexByteArray()
        {
            var r1 = new RequiredClass <string>(_requiredString);
            var genericExampleClass = new GenericExampleClass <RequiredClass <string>,
                                                               RequiredClass <string>,
                                                               DateTime,
                                                               ComplexRequiredGenericClass2 <RequiredClass <string> > >(r1, DateTime.Now);

            // So to call ComplexByteArray with business value above steps needs to setup with fakes.
            var x = genericExampleClass.ComplexByteArray;
        }
Ejemplo n.º 3
0
        public void SampleCreateExampleOfGenericExampleClassBusinessValueForComplexNumber2()
        {
            // observe how the "ComplexNumber2" is called.
            // So to test ComplexNumber2 with business value
            var genericExampleClass = new GenericExampleClass <RequiredClass <string>,
                                                               RequiredClass <string>,
                                                               DateTime,
                                                               ComplexRequiredGenericClass2 <RequiredClass <string> > >();

            // So to call ComplexNumber2 with business value above steps needs to setup with fakes.
            var x = genericExampleClass.ComplexNumber2;
        }
Ejemplo n.º 4
0
        public void SampleCreateExampleOfGenericExampleClassForComplexDictionaryItemPopulate()
        {
            var r1 = new RequiredClass <string>(_requiredString);

            var genericExampleClass = new GenericExampleClass <RequiredClass <string>,
                                                               RequiredClass <string>,
                                                               DateTime,
                                                               ComplexRequiredGenericClass2 <RequiredClass <string> > >(5);

            var complexRequired = new ComplexRequiredGenericClass2 <RequiredClass <string> >(r1, r1, null);
            var newDictionary   = new Dictionary <int, ComplexRequiredGenericClass2 <RequiredClass <string> > >();

            newDictionary.Add(51100, complexRequired);
            newDictionary.Add(51101, complexRequired);
            newDictionary.Add(0, complexRequired);
            newDictionary.Add(1, complexRequired);

            // So to call ComplexDictionaryItemPopulate with business value above steps needs to setup with fakes.
            genericExampleClass.ComplexDictionaryItemPopulate(newDictionary, complexRequired, complexRequired);
        }