Esempio n. 1
0
        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()));
        }
Esempio n. 2
0
 private static Expression <Func <InsertDataAvailableNotificationsCommand, bool> > ExpectedUuid(DataAvailableNotificationDto badDto)
 {
     return(command => command.Notifications.Single().Uuid == badDto.Uuid.ToString());
 }