示例#1
0
        public void TestAmericanFinAffidavit()
        {
            var options = AmericanDomusOpesOptions.RandomOpesOptions(
                Domus.US.AmericanUtil.RandomAmericanFirstName(Gender.Female),
                Domus.US.AmericanUtil.RandomAmericanLastName());

            var income = AmericanIncome.RandomIncome(options);

            options.SumTotal = income.Total.ToDouble();
            var assets   = AmericanAssets.RandomAssets(options);
            var expenses = AmericanExpenses.RandomExpenses(options);

            var allItems = income.ToData(KindsOfTextCase.Kabab);

            foreach (var asset in assets.ToData(KindsOfTextCase.Kabab))
            {
                allItems.Add(asset.Key, asset.Value);
            }
            foreach (var expense in expenses.ToData(KindsOfTextCase.Kabab))
            {
                allItems.Add(expense.Key, expense.Value);
            }

            foreach (var key in allItems.Keys)
            {
                Console.WriteLine($"{key}, {allItems[key]}");
            }
        }
示例#2
0
        public void TestRandomAssets()
        {
            var testSubject = AmericanAssets.RandomAssets(new AmericanDomusOpesOptions {
                Inception = new DateTime(DateTime.Today.Year, 1, 1)
            });

            Assert.IsNotNull(testSubject);

            Assert.IsNotNull(testSubject.MyItems);
            Assert.AreNotEqual(0, testSubject.MyItems.Count);
        }
示例#3
0
        public void TestToData()
        {
            var testSubject = AmericanAssets.RandomAssets();
            var testResult  = testSubject.ToData(KindsOfTextCase.Kabab);

            Assert.IsNotNull(testResult);
            Assert.AreNotEqual(0, testResult.Count);
            foreach (var tr in testResult.Keys)
            {
                Console.WriteLine($"{tr}, {testResult[tr]}");
            }
        }