public ImportNotificationStatusChange(ImportNotificationStatus oldStatus, 
     ImportNotificationStatus newStatus,
     Guid userId)
 {
     PreviousStatus = oldStatus;
     NewStatus = newStatus;
     ChangeDate = new DateTimeOffset(SystemTime.UtcNow, TimeSpan.Zero);
     UserId = userId.ToString();
 }
 public ImportNotificationSearchResult(Guid notificationId,
     string number, 
     ImportNotificationStatus status, 
     string exporter, 
     string importer,
     NotificationType notificationType)
 {
     NotificationId = notificationId;
     NotificationType = notificationType;
     Number = number;
     Status = status;
     Exporter = exporter;
     Importer = importer;
 }
        public void CanParseImportStatus(ImportNotificationStatus status)
        {
            model.SelectedNotificationStatusId = (int)status + 500;

            Assert.Equal(status, model.GetImportNotificationStatus());
        }
        public void CanMarkFileClosedAtAnyTime(ImportNotificationStatus currentStatus)
        {
            SetNotificationAssessmentStatus(currentStatus);
            assessment.MarkFileClosed(AnyDate);

            Assert.Equal(ImportNotificationStatus.FileClosed, assessment.Status);
        }
 private void SetNotificationAssessmentStatus(ImportNotificationStatus status)
 {
     ObjectInstantiator<ImportNotificationAssessment>.SetProperty(x => x.Status, status, assessment);
 }
 public ImportNotificationStatusChangeEvent(ImportNotificationAssessment assessment, ImportNotificationStatus source, ImportNotificationStatus destination)
 {
     Assessment = assessment;
     Source = source;
     Destination = destination;
 }