using System;
using NSubstitute;
ISomeInterface mock = Substitute.For<ISomeInterface>();
mock[Arg.Any<string>()].Returns("anything for all string key");
Console.WriteLine(mock["qqq"]);
public interface ISomeInterface
{
string this[string key] { get; }
}