mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-16 16:25:54 +01:00
71 lines
1.8 KiB
ObjectPascal
71 lines
1.8 KiB
ObjectPascal
|
unit ActiveRecordControllerTestU;
|
||
|
|
||
|
// ***************************************************************************
|
||
|
//
|
||
|
// Delphi MVC Framework
|
||
|
//
|
||
|
// Copyright (c) 2010-2021 Daniele Teti and the DMVCFramework Team
|
||
|
//
|
||
|
// https://github.com/danieleteti/delphimvcframework
|
||
|
//
|
||
|
// ***************************************************************************
|
||
|
//
|
||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
// you may not use this file except in compliance with the License.
|
||
|
// You may obtain a copy of the License at
|
||
|
//
|
||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||
|
//
|
||
|
// Unless required by applicable law or agreed to in writing, software
|
||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
// See the License for the specific language governing permissions and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// *************************************************************************** }
|
||
|
|
||
|
interface
|
||
|
|
||
|
uses
|
||
|
DUnitX.TestFramework,
|
||
|
FireDAC.Comp.Client, FireDAC.ConsoleUI.Wait, FireDAC.VCLUI.Wait,
|
||
|
PGUtilsU;
|
||
|
|
||
|
type
|
||
|
[TestFixture]
|
||
|
TTestActiveRecordController = class(TObject)
|
||
|
public
|
||
|
[SetupFixture]
|
||
|
procedure SetupFixture;
|
||
|
[Teardown]
|
||
|
procedure Teardown;
|
||
|
end;
|
||
|
|
||
|
implementation
|
||
|
|
||
|
uses
|
||
|
System.Classes, System.IOUtils, BOs, MVCFramework.ActiveRecord,
|
||
|
System.SysUtils, System.Threading, System.Generics.Collections, Data.DB,
|
||
|
FireDAC.Stan.Intf, ShellAPI, Winapi.Windows, FDConnectionConfigU;
|
||
|
|
||
|
|
||
|
{ TTestActiveRecordController }
|
||
|
|
||
|
procedure TTestActiveRecordController.SetupFixture;
|
||
|
begin
|
||
|
CreateFirebirdPrivateConnDef(True);
|
||
|
end;
|
||
|
|
||
|
procedure TTestActiveRecordController.Teardown;
|
||
|
begin
|
||
|
|
||
|
end;
|
||
|
|
||
|
initialization
|
||
|
|
||
|
TDUnitX.RegisterTestFixture(TTestActiveRecordController);
|
||
|
|
||
|
finalization
|
||
|
|
||
|
end.
|