Skip to content

The service instance has already been added. You can safely remove this call to AutoMocker.Use after update #470

Description

@james1301

Hi I am getting this error after updating from 3.5 to 4.0.2: The service instance has already been added. You can safely remove this call to AutoMocker.Use.

I am getting this when trying to set a Uri like this. I'm not sure where another use of a Uri would be and I don't really know how to fix this at the moment, without not using automocker and constructing some objects manually.

autoMocker.Use(new Uri(viewName, UriKind.Relative));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions