public void GetComponentInfo_HappyDays_GetsExpectedKey()
        {
            // Arrange
            var mapping = new ComponentMapping <Employee>(null);

            mapping.WithKey(emp => emp.EmployeeNumber);

            var employee = new Employee {
                EmployeeNumber = "666"
            };

            // Act
            var componentInfo = mapping.GetComponentInfo(employee);

            // Assert
            Assert.Equal("666", componentInfo.Item1);
        }
        public void GetComponentInfo_HappyDays_GetsCorrectFieldsValues()
        {
            // Arrange
            var mapping = new ComponentMapping <Employee>(null);

            mapping.WithKey(emp => emp.EmployeeNumber);
            mapping.WithField(e => e.Name, "employee-name");

            var employee = new Employee {
                EmployeeNumber = "666", Name = "Donald Duck"
            };

            // Act
            var componentInfo = mapping.GetComponentInfo(employee);

            // Assert
            Assert.Equal("Donald Duck", componentInfo.Item2["employee-name"]);
        }