FakeStorageProvider ClassKentico 8.0 API Reference
Testing IO storage provider. Usage example: [Test] public void SampleTestMethod() { TestStorageProvider provider = TestStorageProvider.GetMappedProvider(); provider.FileObject.ReadAllText("path").ReturnsForAnyArgs("text"); string result = CMS.IO.File.ReadAllText("path"); Assert.AreEqual("text", result); }
Inheritance Hierarchy

OnlineSystem Object
  CMS.IO AbstractStorageProvider
    CMS.Tests FakeStorageProvider

Namespace: CMS.Tests
Assembly: CMS.Tests (in CMS.Tests.dll) Version: 8.0.0.0 (8.0.5239.26125)
See Also