public void GetKeyNamesNonStandardIdTest()
        {
            // Arrange
            var materializer = new EntityFrameworkMaterializer(context);

            // Act
            IEnumerable <string> keyNames = materializer.GetKeyNames(typeof(Backlink));

            // Assert
            keyNames.Count().Should().Be(1);
            keyNames.First().Should().Be("Url");
        }
        public void GetKeyNamesNotAnEntityTest()
        {
            // Arrange
            var materializer = new EntityFrameworkMaterializer(context);

            // Act
            Action action = () =>
            {
                materializer.GetKeyNames(typeof(NotAnEntity));
            };

            action.ShouldThrow <ArgumentException>().Which.Message.Should().Be("The Type NotAnEntity was not found in the DbContext with Type TestDbContext");
        }