using System;
using System.Workflow.ComponentModel;
using AcmeCorp.DomainLibrary.AcmeHelpdeskDomain;

namespace NewEmployeeWFLibrary.Activities
{
    public partial class GetEmailAddress : BaseEmployeeActivity
    {
        public GetEmailAddress()
        {
            InitializeComponent();
        }

        //protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
        //{
        //    throw new NotImplementedException();
        //}

        protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
        {
            Email = EmailAddressCreator.GetInstance().CreateEmailAddress(FirstName, LastName);
            return ActivityExecutionStatus.Closed;
        }



    }
}