Exemplo n.º 1
0
        public void AddMessages()
        {
            var count = _messenger.GetMessageCount();

            if (count != 0)
            {
                return;
            }

            var index = 0;

            while (index++ < 50)
            {
                var message = new InvoiceMessage
                {
                    Id                = Guid.NewGuid().ToString(),
                    EventDate         = GetDate(),
                    TenantCode        = "MaritzCX",
                    ApplicationSource = "Pledge",
                    Content           = $"Invoice {index}",
                    RecordsProcessed  = GetCount(),
                    Country           = GetCountry(index),
                    Dealer            = GetDealer(index)
                };

                _messenger.AddMessage(message);
            }
        }
Exemplo n.º 2
0
        public void AddMessages()
        {
            var count = _messenger.GetMessageCount();

            if (count != 0)
            {
                return;
            }

            var index = 0;

            while (index++ < 50)
            {
                var message = new IncidenceMessage
                {
                    Id                = Guid.NewGuid().ToString(),
                    EventDate         = DateTime.Now,
                    TenantCode        = "MaritzCX",
                    ApplicationSource = "Pledge",
                    Content           = $"Incidence {index}",
                    StartDate         = GetDate(index, true),
                    EndDate           = GetDate(index, false),
                    MachineName       = GetMachine(index)
                };

                _messenger.AddMessage(message);
            }
        }
Exemplo n.º 3
0
        public void AddMessages()
        {
            var count = _messenger.GetMessageCount();

            if (count != 0)
            {
                return;
            }

            var index = 0;

            while (index++ < 50)
            {
                var message = new Message
                {
                    Id                = Guid.NewGuid().ToString(),
                    EventDate         = GetDate(),
                    TenantCode        = "MaritzCX",
                    ApplicationSource = "Pledge",
                    Content           = $"Event {index}"
                };

                _messenger.AddMessage(message);
            }
        }
Exemplo n.º 4
0
        public void AddMessages()
        {
            var count = _messenger.GetMessageCount();

            if (count != 0)
            {
                return;
            }

            var index = 0;

            while (index++ < 50)
            {
                var message = new TraceMessage
                {
                    Id                = Guid.NewGuid().ToString(),
                    EventDate         = GetDate(),
                    TenantCode        = "MaritzCX",
                    ApplicationSource = "Pledge",
                    Content           = $"Trace {index}",
                    TotalFail         = GetCount(),
                    TotalPass         = GetCount(),
                    FileName          = GetFile(index),
                    JobId             = Guid.NewGuid().ToString()
                };

                _messenger.AddMessage(message);
            }
        }
Exemplo n.º 5
0
        public void AddMessages()
        {
            var count = _messenger.GetMessageCount(IndexName, TypeName);

            if (count > 0)
            {
                //return;
            }

            var index = 0;

            while (index++ < 50)
            {
                var message = new PledgeRun
                {
                    StartDate         = GetDate(true),
                    EndDate           = GetDate(false),
                    TenantCode        = "MaritzCX",
                    ApplicationSource = "Pledge",
                    Content           = $"Pledge {index}",
                    RecordsProcessed  = GetCount(),
                    TotalFail         = GetCount(),
                    TotalPass         = GetCount(),
                    FileName          = GetFile(index),
                    RecordId          = Guid.NewGuid().ToString(),
                    JobPostId         = Guid.NewGuid().ToString(),
                    Message           = new Message
                    {
                        Id                = Guid.NewGuid().ToString(),
                        EventDate         = GetDate(),
                        TenantCode        = "MaritzCX",
                        ApplicationSource = "Pledge",
                        Content           = $"Event {index}"
                    }
                };

                _messenger.AddMessage(message, IndexName, TypeName);
            }
        }