Example #1
0
        public void Publish()
        {
            var _data = new Transactions
            {
                Id                = Guid.NewGuid().ToString().Replace("-", "").ToUpper(),
                AccountNumber     = $"{00}{20 * new Random(DateTime.Now.Second * DateTime.Now.AddMilliseconds(3).Millisecond).Next(100000, 999999)}",
                AccountIdentifier = $"STB{4 * new Random(DateTime.Now.Second * DateTime.Now.AddMilliseconds(13).Millisecond).Next(1000, 9999)}",
                Amount            = (decimal)(14.45 * new Random(DateTime.Now.Second * DateTime.Now.AddMilliseconds(8).Millisecond).Next(1000, 9999)),
                TransactionFee    = (decimal)2.4500,
                TransactionDate   = DateTime.Now,
            };

            _send.Pub("FBNKEXCH", _data);
        }