Skip to content

Commit

Permalink
Reacting to IFileSystemInfo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkm committed Aug 26, 2014
1 parent 313a537 commit 096ba08
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/Microsoft.AspNet.Mvc.Core.Test/ExpiringFileInfoCacheTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Threading;
using Microsoft.AspNet.FileSystems;
using Microsoft.Framework.OptionsModel;
using Microsoft.Framework.Runtime;
Expand Down Expand Up @@ -325,14 +323,14 @@ public void GettingFileInfoReturnsSameDataWithMaxExpiration()
public class ControllableExpiringFileInfoCache : ExpiringFileInfoCache
{
public ControllableExpiringFileInfoCache(IApplicationEnvironment env,
IOptionsAccessor<MvcOptions> optionsAccessor)
IOptionsAccessor<MvcOptions> optionsAccessor)
: base(env, optionsAccessor)
{
}

private DateTime? _internalUtcNow { get; set; }
private DummyFileSystem _underlyingFileSystem = new DummyFileSystem();

protected override DateTime UtcNow
{
get
Expand Down Expand Up @@ -413,6 +411,11 @@ public bool TryGetFileInfo(string subpath, out IFileInfo fileInfo)
return false;
}
}

public string TryGetParentPath(string subpath, out string parentPath)
{
throw new NotImplementedException();
}
}

public class DummyFileInfo : IFileInfo
Expand Down

0 comments on commit 096ba08

Please sign in to comment.