I have a class with a constructor, that gets an IStringLocalizer<T>
injected.
public MailBuilder(IStringLocalizer<MailTexte> stringLocalizer)
{ ... }
I'm trying to setup the fake of the string localizer:
A.CallTo(() => this.stringLocalizer["ConfirmationMailTitel"]).Returns(subject);
But I get the message
IReturnValueArgumentValidationConfiguration LocalizedString does not contain a definition for 'Returns'
The interfact of the IStringLocalizer looks like this:
LocalizedString this[string name] { get; }
How can I setup this indexer correctly in FakeItEasy?
Thanks in advance