示例#1
0
        public void TestHandleFetchMissingAsset()
        {
            IAssetDataPlugin      assetDataPlugin = new TestAssetDataPlugin();
            GetAssetStreamHandler handler         = new GetAssetStreamHandler(assetDataPlugin);

            GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler);
        }
        private static AssetBase CreateTestEnvironment(out GetAssetStreamHandler handler, out OSHttpResponse response)
        {
            AssetBase asset = GetAssetStreamHandlerTestHelpers.CreateCommonTestResources(out response);

            IAssetDataPlugin assetDataPlugin = new TestAssetDataPlugin();

            handler = new GetAssetStreamHandler(assetDataPlugin);

            assetDataPlugin.CreateAsset(asset);
            return(asset);
        }