public Employee(string firstName, string lastName, IEmployeeConfig config) { _firstName = firstName; _lastName = lastName; _config = config; Validate(); }
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); }