public static Submission TranslateToSubmission(Domain.Submission source)
 {
     return(new Submission
     {
         Id = source.Id,
         Affirmation = TranslateToAffirmation(source.Affirmation),
         Subscriber = TranslateToSubscriber(source.Subscriber),
         SubmissionTime = source.SubmissionTime
     });
 }
        private async Task <Submission> _CreateSubmission(Domain.Subscriber subscriber, Domain.Affirmation[] affirmations)
        {
            var submission = new Domain.Submission
            {
                Subscriber     = subscriber,
                Affirmation    = _SelectRandom(affirmations),
                SubmissionTime = _GetRandomSubmissionDelayForSubscriber(subscriber).ToUniversalTime()
            };

            await mDomainContext.AddSubmission(submission);

            var result = Translation.CoreTranslator.TranslateToSubmission(submission);

            return(result);
        }