Exemplo n.º 1
0
 private static bool CompareGetDtos(MessageGetDto left, MessageGetDto right)
 {
     if (left is null ^ right is null)
     {
         return(false);
     }
     if (left.Id != right.Id)
     {
         return(false);
     }
     if (left.Author.Id != right.Author.Id)
     {
         return(false);
     }
     if (left.Date != right.Date)
     {
         return(false);
     }
     if (left.Content != right.Content)
     {
         return(false);
     }
     if (left.IsViewed != right.IsViewed)
     {
         return(false);
     }
     if (left.ThreadId != right.ThreadId)
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 2
0
 private static bool CompareWithDto(MessageGetDto left, MessageDto right)
 {
     if (left is null ^ right is null)
     {
         return(false);
     }
     if (left.Content != right.Content)
     {
         return(false);
     }
     if (left.ThreadId != right.ThreadId)
     {
         return(false);
     }
     return(true);
 }