using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.ComponentModel;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NewEmployeeWFLibrary.Activities;
using NewEmployeeWFLibrary_Test.Helpers;

namespace NewEmployeeWFLibrary_Test.Activities
{
    [TestClass]
    public class GetEmailAddress_ActivityShould
    {
        //[TestMethod]
        //public void CreateAnEmailAddress()
        //{
        //    Assert.Fail();
        //}

        [TestMethod]
        public void CreateAnEmailAddress()
        {
            GetEmailAddress_Accessor activity = new GetEmailAddress_Accessor();
            activity.FirstName = Mother.FIRST_NAME;
            activity.LastName = Mother.LAST_NAME;


            activity.Execute_Accessor(null);
            Assert.AreEqual(activity.Email.ToLower(), Mother.EMAIL.ToLower());
        }

        //[TestMethod]
        //[ExpectedException(typeof(ArgumentNullException))]
        //public void ThrowExceptionOnNullFirstName()
        //{
        //    GetEmailAddress_Accessor activity = new GetEmailAddress_Accessor();
        //    activity.FirstName = null;
        //    activity.LastName = Mother.LAST_NAME;

        //    activity.Execute_Accessor(null);
        //}


        //[TestMethod]
        //[ExpectedException(typeof(ArgumentNullException))]
        //public void ThrowExceptionOnNullLastName()
        //{
        //    GetEmailAddress_Accessor activity = new GetEmailAddress_Accessor();
        //    activity.FirstName = Mother.FIRST_NAME;
        //    activity.LastName = null;

        //    activity.Execute_Accessor(null);
        //}
    }
}
