Exemplo n.º 1
0
        public void OnSetArrivalTimeEpochMillisecondsIsSet()
        {
            var message  = new ChangeMessage();
            var datetime = DateTime.Parse("2020-02-14 19:17:33.123", new NumberFormatInfo());

            message.SetArrivalTime(datetime);
            Assert.Equal(1581707853123, message.ArrivalTime);
        }
Exemplo n.º 2
0
 private void ProcessMessage(ChangeMessage message)
 {
     message.SetArrivalTime(DateTime.UtcNow);
     if (ProcessMessageMap.ContainsKey(message.Operation))
     {
         ProcessMessageMap[message.Operation](message);
     }
     SetClocks(message);
 }