Skip to content

Consider removing the 'EFCore.Design.Tests.Shared' project completely #24

Open

Description

@lorcQc
No description provided.

Activity

  1. self-assigned this
    on May 24, 2021
  2. lorcQc commented on May 24, 2021

    @lorcQc
    CollaboratorAuthor

    Information

    EFCore.Design.Tests.Shared is a C# project containing a test implementation of IRelationalTypeMappingSourcePlugin (TestTypeMappingPlugin.cs) and a class derived from RelationalTypeMappingSource (TestRelationalTypeMappingSource.cs).
    They are used in unit tests.

    I had put them there because the IRelationalTypeMappingSourcePlugin interface cannot be implemented in VB. It requires to implement a method containing an in parameter modifier. in is similar to the ByRef keyword, except that the in arguments cannot be changed by the called method. There is no equivalent in VB.
    TestRelationalTypeMappingSource has not been translated because it also contains a method with an in keyword.

  3. lorcQc commented on May 24, 2021

    @lorcQc
    CollaboratorAuthor

    TestTypeMappingPlugin.cs

    Is only used in VisualBasicHelperTests.vb to test that method VisualBasicHelper.UnknownLiteral is capable of generating literals from expressions provided by a mapping source.

    I believe it is possible to test this without having to implement IRelationalTypeMappingSourcePlugin.

    We only need an IRelationalTypeMappingSource which implements this method
    Public Function FindMapping(type As Type) As RelationalTypeMapping

  4. lorcQc commented on May 24, 2021

    @lorcQc
    CollaboratorAuthor

    TestRelationalTypeMappingSource.cs

    ....

  5. added this to the Backlog milestone on Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions