Example #1
0
        public async Task Should_update_notifications()
        {
            var notification1 = CreateNotification(userId1);
            var notification2 = CreateNotification(userId2);

            await _.Repository.InsertAsync(notification1, default);

            await _.Repository.InsertAsync(notification2, default);

            var update = new ChannelSendInfo
            {
                LastUpdate = Instant.FromUtc(2020, 12, 11, 10, 9, 8),
                Detail     = "Something",
                Status     = ProcessStatus.Failed
            };

            await _.Repository.BatchWriteAsync(new[]
Example #2
0
 public static ChannelSendInfoDto FromDomainObject(ChannelSendInfo source)
 {
     return(SimpleMapper.Map(source, new ChannelSendInfoDto()));
 }