Ejemplo n.º 1
0
 public void TestInitialise()
 {
     TestData = new MatchingRuleDto
     {
         Created         = new DateTime(2014, 1, 2),
         Amount          = 123.45M,
         BucketCode      = "CARMTC",
         Description     = "Testing Description",
         LastMatch       = new DateTime(2014, 06, 22),
         MatchCount      = 2,
         Reference1      = "Testing Reference1",
         Reference2      = "Testing Reference2",
         Reference3      = "Testing Reference3",
         TransactionType = "Testing TransactionType"
     };
 }
Ejemplo n.º 2
0
        public void RuleIdShouldBeMapped()
        {
            MatchingRuleDto result = ArrangeAndAct();

            Assert.AreEqual(TestData.RuleId, result.RuleId);
        }
Ejemplo n.º 3
0
        public void Reference3ShouldBeMapped()
        {
            MatchingRuleDto result = ArrangeAndAct();

            Assert.AreEqual(TestData.Reference3, result.Reference3);
        }
Ejemplo n.º 4
0
        public void MatchCountShouldBeMapped()
        {
            MatchingRuleDto result = ArrangeAndAct();

            Assert.AreEqual(TestData.MatchCount, result.MatchCount);
        }
Ejemplo n.º 5
0
        public void LastMatchShouldBeMapped()
        {
            MatchingRuleDto result = ArrangeAndAct();

            Assert.AreEqual(TestData.LastMatch, result.LastMatch);
        }
Ejemplo n.º 6
0
        public void DescriptionShouldBeMapped()
        {
            MatchingRuleDto result = ArrangeAndAct();

            Assert.AreEqual(TestData.Description, result.Description);
        }
Ejemplo n.º 7
0
        public void CreatedDatesShouldBeMapped()
        {
            MatchingRuleDto result = ArrangeAndAct();

            Assert.AreEqual(TestData.Created, result.Created);
        }
Ejemplo n.º 8
0
        public void BucketCodeShouldBeMapped()
        {
            MatchingRuleDto result = ArrangeAndAct();

            Assert.AreEqual(TestData.BucketCode, result.BucketCode);
        }
Ejemplo n.º 9
0
        public void TransactionTypeShouldBeMapped()
        {
            MatchingRuleDto result = ArrangeAndAct();

            Assert.AreEqual(TestData.TransactionType, result.TransactionType);
        }