Ejemplo n.º 1
0
        public FileAccessAuthorization_Tests()
        {
            configuration = new Mock<IConfiguration<IFileAccessAuthorization>>();
            var configurations = new[] { configuration.Object };
            bundles = new BundleCollection(new CassetteSettings(), Mock.Of<IFileSearchProvider>(), Mock.Of<IBundleFactoryProvider>());

            authorization = new FileAccessAuthorization(configurations, bundles);
        }
Ejemplo n.º 2
0
        public FileAccessAuthorization_Tests()
        {
            configuration = new Mock <IConfiguration <IFileAccessAuthorization> >();
            var configurations = new[] { configuration.Object };

            bundles = new BundleCollection(new CassetteSettings(), Mock.Of <IFileSearchProvider>(), Mock.Of <IBundleFactoryProvider>());

            authorization = new FileAccessAuthorization(configurations, bundles);
        }