Beispiel #1
0
        /// <summary>
        /// Create a new MittelklasseAuto object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="marke">Initial value of the Marke property.</param>
        /// <param name="tagestarif">Initial value of the Tagestarif property.</param>
        public static MittelklasseAuto CreateMittelklasseAuto(global::System.Int32 id, global::System.String marke, global::System.Int32 tagestarif)
        {
            MittelklasseAuto mittelklasseAuto = new MittelklasseAuto();

            mittelklasseAuto.Id         = id;
            mittelklasseAuto.Marke      = marke;
            mittelklasseAuto.Tagestarif = tagestarif;
            return(mittelklasseAuto);
        }
        public static List<Auto> InitializeAutoListTestData()
        {
            List<Auto> autoListTestData = new List<Auto>();

            StandardAuto test1 = new StandardAuto();
            MittelklasseAuto test2 = new MittelklasseAuto();
            LuxusklasseAuto test3 = new LuxusklasseAuto();

            test1.Marke = "Fiat Punto";
            test1.Tagestarif = 50;

            test2.Marke = "VW Golf";
            test2.Tagestarif = 120;

            test3.Marke = "Audi S6";
            test3.Tagestarif = 180;

            autoListTestData.Add(test1);
            autoListTestData.Add(test2);
            autoListTestData.Add(test3);
            return autoListTestData;
        }
 /// <summary>
 /// Create a new MittelklasseAuto object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="marke">Initial value of the Marke property.</param>
 /// <param name="tagestarif">Initial value of the Tagestarif property.</param>
 public static MittelklasseAuto CreateMittelklasseAuto(global::System.Int32 id, global::System.String marke, global::System.Int32 tagestarif)
 {
     MittelklasseAuto mittelklasseAuto = new MittelklasseAuto();
     mittelklasseAuto.Id = id;
     mittelklasseAuto.Marke = marke;
     mittelklasseAuto.Tagestarif = tagestarif;
     return mittelklasseAuto;
 }