Exemplo n.º 1
0
        public void GetAttributesForTransactionTypeThrowsException()
        {
            var    earningsAndPaymentsBuilder = new EarningsAndPaymentsBuilder() as IEarningsAndPaymentsBuilder;
            Action act = () => earningsAndPaymentsBuilder.GetAttributesForTransactionType(1);

            act.Should().Throw <ApplicationException>().Where(e => e.Message.Equals("Unexpected TransactionType [1]"));
        }
Exemplo n.º 2
0
        public void GetAttributesForTransactionType(byte transType, string[] expected)
        {
            var earningsAndPaymentsBuilder = new EarningsAndPaymentsBuilder() as IEarningsAndPaymentsBuilder;

            var result = earningsAndPaymentsBuilder.GetAttributesForTransactionType(transType);

            result.Should().BeEquivalentTo(expected);
        }