Exemplo n.º 1
0
        static Data CreateItem(int year, int month)
        {
            DeterministicRandom rnd = new DeterministicRandom(month);

            return(new Data()
            {
                Month = new DateTime(year, month, DateTime.DaysInMonth(year, month)),
                ConstructionIncome = rnd.Random(75000, 125000) + (decimal)rnd.Random(100) / 100,
                SalesIncome = rnd.Random(0, 1000),

                CostOfGoodsSold = rnd.Random(0, 3500) + (decimal)rnd.Random(100) / 100,
                JobExpenses = rnd.Random(5000, 35000) + (decimal)rnd.Random(100) / 100,

                Automobile = rnd.Random(300, 900) + (decimal)rnd.Random(100) / 100,
                BankServiceCharges = rnd.Random(10, 80),
                Insurance = rnd.Random(1000, 5000),
                PayrollExpenses = rnd.Random(9000, 18000),
                Repairs = rnd.Random(0, 400),
                ToolsAndMachinery = rnd.Random(0, 1000),
            });
        }