GetResourceTypeFromRepresentationType() public method

public GetResourceTypeFromRepresentationType ( Type resourceType ) : string
resourceType System.Type
return string
        public void Supports_english_singular_single_word_type_name()
        {
            // Arrange
            var convention = new PluralizedCamelCaseTypeConvention();

            // Act
            var name = convention.GetResourceTypeFromRepresentationType(typeof(Author));

            // Assert
            name.ShouldEqual("authors");
        }
        public void Supports_english_singular_pascal_case_type_name()
        {
            // Arrange
            var convention = new PluralizedCamelCaseTypeConvention();

            // Act
            var name = convention.GetResourceTypeFromRepresentationType(typeof(PostLike));

            // Assert
            name.ShouldEqual("postLikes");
        }