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); }
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); }
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); }
public void SendStatusUpdateMessage(HeartBeatStatus status) { Clients.All.SendCoreAsync(StatusUpdate, new[] { status.ToString() }); }