public void Null_String_Is_Mapped_To_Enum_Default()
        {
            var employee = new EmployeeWithStringEnum {
                Id = Guid.NewGuid(), Name = "Timuçin", Department = null
            };

            var dto = Mapper.Map <EmployeeWithStringEnum, EmployeeDTO>(employee);

            Assert.NotNull(dto);

            Assert.Equal(employee.Id, dto.Id);
            Assert.Equal(employee.Name, dto.Name);
            Assert.Equal(Departments.Finance, dto.Department);
        }
        public void String_Is_Mapped_To_Enum()
        {
            var employee = new EmployeeWithStringEnum {
                Id = Guid.NewGuid(), Name = "Timuçin", Department = Departments.IT.ToString()
            };

            var dto = Mapper.Map <EmployeeWithStringEnum, EmployeeDTO>(employee);

            Assert.NotNull(dto);

            Assert.Equal(employee.Id, dto.Id);
            Assert.Equal(employee.Name, dto.Name);
            Assert.Equal(Departments.IT, dto.Department);
        }