Example #1
0
        public static ProductInstance Random()
        {
            var e = new ProductInstance();

            e.SetRandomValues();
            return(e);
        }
Example #2
0
        public static ProductInstance GetRandomDerived()
        {
            var i = GetRandom.Int32() % 3;

            if (i == 1)
            {
                return(ServiceInstance.Random());
            }
            if (i == 2)
            {
                return(PackageInstance.Random());
            }
            return(ProductInstance.Random());
        }