public void FromAmountPattern()
        {
            var pattern = new AmountPattern { Amount = 100M, Direction = EntryType.Credit };
            var result = _toModel.Convert(ToAccountIdentifier(pattern));

            ValidateSimplePattern(result, "Amount", "{\"Amount\":\"100.00\",\"Direction\":\"Credit\"}");
        }
 private Documents.Pattern ToPattern(AmountPattern pattern)
 {
     return new Pattern
     {
         Name = "Amount",
         Properties =
             {
                 {"Amount", pattern.Amount}
             }
     };
 }