public void ToComplexEntity_WhenSimpleEntity_ExpectCorrectMap()
        {
            // Arrange
            var claimMappers = new ClaimMappers();

            var simpleEntity = new SimpleClaim
            {
                Type = "Type",
                Issuer = "Issuer",
                ValueType = "ValueType",
                Properties = new Dictionary<string, string>(),
                Value = "Value",
                OriginalIssuer = "OriginalIssuer"
            };

            // Act
            var stopwatch = Stopwatch.StartNew();
            var complexEntity = claimMappers.ToComplexEntity(simpleEntity);
            stopwatch.Stop();

            // Assert
            this.WriteTimeElapsed(stopwatch);

            Assert.That(complexEntity, Is.Not.Null);

            Assert.That(complexEntity.Type, Is.EqualTo("Type"));
            Assert.That(complexEntity.Issuer, Is.EqualTo("Issuer"));
            Assert.That(complexEntity.ValueType, Is.EqualTo("ValueType"));
            Assert.That(complexEntity.Properties, Is.Not.Null);
            Assert.That(complexEntity.Value, Is.EqualTo("Value"));
            Assert.That(complexEntity.OriginalIssuer, Is.EqualTo("OriginalIssuer"));
        }
        public void ToSimpleEntity_WhenComplexEntity_ExpectCorrectMap()
        {
            // Arrange
            var claimMappers = new ClaimMappers();

            var complexEntity = new Claim("Type", "Value", "ValueType", "Issuer", "OriginalIssuer");

            // Act
            var stopwatch = Stopwatch.StartNew();
            var simpleEntity = claimMappers.ToSimpleEntity(complexEntity);
            stopwatch.Stop();

            // Assert
            this.WriteTimeElapsed(stopwatch);

            Assert.That(simpleEntity, Is.Not.Null);

            Assert.That(simpleEntity.Type, Is.EqualTo("Type"));
            Assert.That(simpleEntity.Issuer, Is.EqualTo("Issuer"));
            Assert.That(simpleEntity.ValueType, Is.EqualTo("ValueType"));
            Assert.That(simpleEntity.Properties, Is.Not.Null);
            Assert.That(simpleEntity.Value, Is.EqualTo("Value"));
            Assert.That(simpleEntity.OriginalIssuer, Is.EqualTo("OriginalIssuer"));
        }