26 строки
929 B
C#
26 строки
929 B
C#
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using DotnetIsolatedTests.Common;
|
|
using Microsoft.Azure.Functions.Worker;
|
|
using Microsoft.Azure.Functions.Worker.Extensions.Sql;
|
|
|
|
namespace DotnetIsolatedTests
|
|
{
|
|
public static class TableNotPresentTrigger
|
|
{
|
|
/// <summary>
|
|
/// Used in verification of the error message when the user table is not present in the database.
|
|
/// </summary>
|
|
[Function(nameof(TableNotPresentTrigger))]
|
|
public static void Run(
|
|
[SqlTrigger("[dbo].[TableNotPresent]", "SqlConnectionString")]
|
|
IReadOnlyList<SqlChange<Product>> products)
|
|
{
|
|
throw new NotImplementedException("Associated test case should fail before the function is invoked.");
|
|
}
|
|
}
|
|
}
|