コード例 #1
0
        public void TestSplitParams()
        {
            TestHelper.InMethod();

            GetAssetStreamHandler handler = new GetAssetStreamHandler(null);
            BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, ASSETS_PATH);
        }
コード例 #2
0
        public void TestHandleFetchMissingAsset()
        {
            IAssetDataPlugin      assetDataPlugin = new TestAssetDataPlugin();
            GetAssetStreamHandler handler         = new GetAssetStreamHandler(assetDataPlugin);

            GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler);
        }
コード例 #3
0
        public void TestHandleMalformedGuid()
        {
            TestHelper.InMethod();

            GetAssetStreamHandler handler = new GetAssetStreamHandler(null);

            BaseRequestHandlerTestHelper.BaseTestHandleMalformedGuid(handler, ASSETS_PATH);
        }
コード例 #4
0
        public void TestHandleNoParams()
        {
            TestHelper.InMethod();

            GetAssetStreamHandler handler = new GetAssetStreamHandler(null);

            BaseRequestHandlerTestHelper.BaseTestHandleNoParams(handler, ASSETS_PATH);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        public void TestHandleMalformedGuid()
        {
            TestHelper.InMethod();

            GetAssetStreamHandler handler = new GetAssetStreamHandler(null);

            BaseRequestHandlerTestHelper.BaseTestHandleMalformedGuid(handler, ASSETS_PATH);
        }
コード例 #7
0
        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.StoreAsset(asset);
            return asset;
        }
コード例 #8
0
        public void TestConstructor()
        {
            TestHelper.InMethod();

            GetAssetStreamHandler handler = new GetAssetStreamHandler(null);
        }