/// <summary> /// Constructs a new instance using a new server constructed with default settings, /// with startup classes specified by <see cref="FunctionTestStartupAttribute"/> attributes /// within the class hierarchy of the actual test class. /// </summary> protected FunctionTestBase() { Server = new FunctionTestServer <TFunction>(GetType()); }
/// <summary> /// Constructs a new instance using the specified server. Note that /// this effectively takes ownership of the given server, which will be /// disposed when the FunctionTestBase instance is disposed. /// </summary> /// <param name="server">The function test server, which is expected to have a /// function target of <typeparamref name="TFunction"/>.</param> protected FunctionTestBase(FunctionTestServer server) { Server = server; }