I am using FakeDB trying to mock a media provider. I get this message when attempting the example shown in the wiki.
Starting from Sitecore 8.2, the Sitecore.Resources.Media.MediaProvider class is marked as obsolete and will be removed in the next major release. Please use new abstract type Sitecore.Abstractions.BaseMediaManager from the Sitecore.Kernel assembly.
How would this look in 8.2 exactly? I've tried the following but nothing is returned.
var mediaProvider = Substitute.For<BaseMediaManager>(); mediaProvider .GetMediaUrl(target) .Returns(expectedUri); // act var mediaUrl = Database.GetDatabase("master").GetItem(newID).MediaUrl(template.FieldId);