private static ServiceBusReceivedMessage CreateMessages(DataAvailableNotificationDto dto) { var protobuf = new DataAvailableNotificationContract { UUID = dto.Uuid.ToString(), Recipient = dto.Recipient.Value.ToString(), Origin = dto.Origin.ToString(), MessageType = dto.MessageType.Value, RelativeWeight = dto.RelativeWeight, SupportsBundling = dto.SupportsBundling }; return(MockedMessage.Create(protobuf.ToByteArray())); }
private static Expression <Func <InsertDataAvailableNotificationsCommand, bool> > ExpectedUuid(DataAvailableNotificationDto badDto) { return(command => command.Notifications.Single().Uuid == badDto.Uuid.ToString()); }