Skip to content

Repository is not glued to Interface #35

@alirezaeiii

Description

@alirezaeiii

Thank you for the great sample. I wonder why You do not have an interface for MarvelRepository or any other Repositories in your core module. You are following SOLID principles, and that is D is SOLID to follow dependency inversion.

High-level modules should not depend on low-level modules. Both should depend on abstractions (e.g., interfaces)

Using interfaces will also simplify unit testing.

Were there any specific reason that you did not use interface for Repository?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions