Exemplo n.º 1
0
        public Employee(string firstName, string lastName, IEmployeeConfig config)
        {
            _firstName = firstName;
            _lastName  = lastName;
            _config    = config;

            Validate();
        }
Exemplo n.º 2
0
        public void EmployeeEmail_ComputedCorrectly()
        {
            IEmployeeConfig configMock = GetConfigurationMock();

            var    employee     = new Employee(FirstName, LastName, configMock);
            string expectedMail = FirstName + "." + LastName + "@" + configMock.CompanyHost;

            Assert.AreEqual(employee.GetEmployeeEmail().Address, expectedMail);
        }