public ResourceViewLocationProviderFixture()
        {
            ResourceViewLocationProvider.Ignore.Clear(); 
            this.reader = A.Fake<IResourceReader>();
            this.resourceAssemblyProvider = A.Fake<IResourceAssemblyProvider>();
            this.viewProvider = new ResourceViewLocationProvider(this.reader, this.resourceAssemblyProvider);

            if (!ResourceViewLocationProvider.RootNamespaces.ContainsKey(this.GetType().Assembly))
            {
                ResourceViewLocationProvider.RootNamespaces.Add(this.GetType().Assembly, "Some.Resource");
            }

            A.CallTo(() => this.resourceAssemblyProvider.GetAssembliesToScan()).Returns(new[] { this.GetType().Assembly });
        }
 public NSembleViewLocationProvider(IRootPathProvider rootPathProvider, IFileSystemReader fileSystemReader, global::Nancy.TinyIoc.TinyIoCContainer container)
 {
     _documentStore = container.Resolve<IDocumentStore>("DocStore");
     fsViewLocationProvider = new FileSystemViewLocationProvider(rootPathProvider, fileSystemReader);
     resourcesViewLocationProvider = new ResourceViewLocationProvider(new NSembleResourceReader(), new NSembleResourceAssemblyProvider());
 }