Skip to content

Unable to mock IRealtimeClient due to incorrect type defined in interface #1293

@StephenSmithBSC

Description

@StephenSmithBSC

IRealtimeClient has a property "Channels" of type "RealtimeChannels" which is not an interface and has no public constructor. However, this class implements IChannels<IRealtimeChannel>. This implies that in IRealtimeClient.cs, the RealtimeChannels type should instead be IChannels<IRealtimeChannel>.

instead of this:

        /// <summary>The collection of channels instanced, indexed by channel name.</summary>
        RealtimeChannels Channels { get; }

it should be this:

        /// <summary>The collection of channels instanced, indexed by channel name.</summary>
        IChannels<IRealtimeChannel> Channels { get; }

┆Issue is synchronized with this Jira Task by Unito

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-qualityAffects the developer experience when working in our codebase.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions