Exemple #1
0
        public void Get_LastHeartBeatTime_Null()
        {
            var fixture   = new Fixture().Customize(new AutoNSubstituteCustomization());
            var messageId = fixture.Create <IMessageId>();
            var test      = new HeartBeatStatus(messageId, null);

            Assert.Null(test.LastHeartBeatTime);
        }
Exemple #2
0
        public void Get_MessageId()
        {
            var fixture   = new Fixture().Customize(new AutoNSubstituteCustomization());
            var messageId = fixture.Create <IMessageId>();
            var test      = new HeartBeatStatus(messageId, null);

            Assert.Equal(messageId, test.MessageId);
        }
Exemple #3
0
        public void Get_LastHeartBeatTime()
        {
            var fixture   = new Fixture().Customize(new AutoNSubstituteCustomization());
            var messageId = fixture.Create <IMessageId>();
            var time      = DateTime.Now;
            var test      = new HeartBeatStatus(messageId, time);

            Assert.Equal(time, test.LastHeartBeatTime);
        }
Exemple #4
0
 public void SendStatusUpdateMessage(HeartBeatStatus status)
 {
     Clients.All.SendCoreAsync(StatusUpdate, new[] { status.ToString() });
 }