[Test] public void TestAssignIncomeProperty()
    {
        IIncomes[] inc = new IIncomes[1];
        inc[0] = new MockIncome();
        ITaxation taxation = new MockBaseTaxation();

        taxation.Incomes = inc;
        Assert.AreEqual(inc, taxation.Incomes, "Not same object");
    }
Ejemplo n.º 2
0
        private void IncomesSearching()
        {
            var x = IIncomes.Where(item => (item.Concept.ToUpperInvariant().Contains(Searching.ToUpperInvariant())) ||
                                   (item.TypeIncome.ToString().ToUpperInvariant().Contains(Searching.ToUpperInvariant())) ||
                                   (item.Month.ToUpperInvariant().Contains(Searching.ToUpperInvariant()))
                                   ).ToList();

            IIncomes.Clear();
            foreach (var item in x)
            {
                IIncomes.Add(item);
            }

            if (string.IsNullOrEmpty(Searching))
            {
                GetIncomes();
            }
        }