public async Task UseIMessageSerializer([Frozen] IMessageSerializer messageSerializer, MessageLoop sut) { await sut.Start(); messageSerializer .Received(1) .DeserializeWithLengthPrefix <BaseRequest>(Arg.Any <Stream>(), PrefixStyle.Base128); }