Пример #1
0
 public bool Equals(FlowPostTransient other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(other.Id == Id &&
            Equals(other.Urn, Urn) &&
            other.UserId.Equals(UserId) &&
            other.DateAdded.RoundToMs().Equals(DateAdded.RoundToMs()) &&
            other.DateModified.RoundToMs().Equals(DateModified.RoundToMs()) &&
            other.TargetUserId.Equals(TargetUserId) &&
            other.ForwardedPostId.Equals(ForwardedPostId) &&
            other.OriginUserId.Equals(OriginUserId) &&
            Equals(other.OriginUserName, OriginUserName) &&
            other.SourceUserId.Equals(SourceUserId) &&
            Equals(other.SourceUserName, SourceUserName) &&
            Equals(other.SubjectUrn, SubjectUrn) &&
            Equals(other.ContentUrn, ContentUrn) &&
            TrackUrns.EquivalentTo(other.TrackUrns) &&
            Equals(other.Caption, Caption) &&
            other.CaptionUserId.Equals(CaptionUserId) &&
            Equals(other.CaptionSourceName, CaptionSourceName) &&
            Equals(other.ForwardedPostUrn, ForwardedPostUrn) &&
            Equals(other.PostType, PostType) &&
            other.OnBehalfOfUserId.Equals(OnBehalfOfUserId));
 }
Пример #2
0
        public void Can_Serialize_multiple_FlowPostTransient()
        {
            var dtos = new List<FlowPostTransient> {
				FlowPostTransient.Create(), 
				FlowPostTransient.Create()
			};
            Serialize(dtos);
        }
Пример #3
0
			public bool Equals(FlowPostTransient other)
			{
				if (ReferenceEquals(null, other)) return false;
				if (ReferenceEquals(this, other)) return true;
				return other.Id == Id && Equals(other.Urn, Urn) && other.UserId.Equals(UserId) && other.DateAdded.RoundToMs().Equals(DateAdded.RoundToMs()) && other.DateModified.RoundToMs().Equals(DateModified.RoundToMs()) && other.TargetUserId.Equals(TargetUserId) && other.ForwardedPostId.Equals(ForwardedPostId) && other.OriginUserId.Equals(OriginUserId) && Equals(other.OriginUserName, OriginUserName) && other.SourceUserId.Equals(SourceUserId) && Equals(other.SourceUserName, SourceUserName) && Equals(other.SubjectUrn, SubjectUrn) && Equals(other.ContentUrn, ContentUrn) && TrackUrns.EquivalentTo(other.TrackUrns) && Equals(other.Caption, Caption) && other.CaptionUserId.Equals(CaptionUserId) && Equals(other.CaptionSourceName, CaptionSourceName) && Equals(other.ForwardedPostUrn, ForwardedPostUrn) && Equals(other.PostType, PostType) && other.OnBehalfOfUserId.Equals(OnBehalfOfUserId);
			}
Пример #4
0
        public void Can_Serialize_single_FlowPostTransient()
        {
            var dto = FlowPostTransient.Create();

            SerializeAndCompare(dto);
        }