Beispiel #1
0
        public void Sample_MethodResultSimplifiedNames2()
        {
            dynamic accountingCriteriaFactory = new DynamicMock();

            accountingCriteriaFactory.Create_Criteria(_, _, _, _)
            .Returns(new[] { new { _Code = 1 }, new { _Code = 2 }, new { _Code = 3 } });

            IAccountingCriteriaFactory result = accountingCriteriaFactory;

            var actual = result.CreateAccountingCriteria(AccountingEntityType.Cashflow, new decimal[0], null, "");

            CollectionAssert.AreEquivalent(new[] { 1, 2, 3 }, actual.Select(c => c.RequestHashCode).ToList());
        }