Exemplo n.º 1
0
        public static Reflection ToReflection(this ReflectionDto dto)
        {
            var reflection = new Reflection
            {
                Id              = dto.Id,
                Mirror          = dto.Mirror.ToMirror(),
                DateTime        = dto.DateTime,
                SourceRevision  = dto.SourceRevision.ToRevision(),
                TargetRevision  = dto.TargetRevision.ToRevision(),
                Synchronization = dto.Synchronization.ToSynchronization()
            };

            return(reflection);
        }
Exemplo n.º 2
0
        public static ReflectionDto ToDto(this IReflection reflection)
        {
            var dto = new ReflectionDto
            {
                Mirror            = reflection.Mirror.ToDto(),
                Id                = reflection.Id,
                DateTime          = reflection.DateTime,
                TargetRevision    = reflection.TargetRevision.ToDto(),
                SourceRevision    = reflection.SourceRevision.ToDto(),
                Synchronization   = reflection.Synchronization.ToDto(),
                MirrorId          = reflection.Mirror.Id,
                SynchronizationId = reflection.Synchronization.Id
            };

            return(dto);
        }