public void ShouldCreateEmpty()
    {
        var sut = ClientToServerMessageMetadata.CreateEmpty();

        Assert.Null(sut.MessageId);
        Assert.Equal(AcknowledgementType.Handled, sut.AcknowledgementType);
        Assert.Null(sut.ResponseMessageTypeId);
    }
 private static MessageWithMetadata ClientMessage(object message)
 {
     return(new MessageWithMetadata
     {
         Message = message,
         Metadata = ClientToServerMessageMetadata.CreateEmpty()
     });
 }
    public void ShouldHaveNullableListOfAffectedGroups()
    {
        var sut = ClientToServerMessageMetadata.CreateEmpty();

        Assert.Null(sut.AffectedGroups);

        var list = new List <string>();

        sut.AffectedGroups = list;
        Assert.Equal(list, sut.AffectedGroups);
    }