public void TestCleanup() { //_handler.Dispose(); //_client.Dispose(); //_handler = null; //_client = null; _bamClient._client.Dispose(); _bamClient = null; }
public EST_BAM_ModelLookupService() { bam_ApiClient = new BAM_ApiClient(); Task.Run(() => bam_ApiClient.Setup()).Wait(); _dbContext = new BAMEsteemExportContext(); _eST_BAM_Models = GetBAM_ManufacturerList(); _bAM_ModelService = new BAM_ModelService(); //_estService = new EST_Service(); }
public BAM_Service(IEST_Service estService, IBAM_HardwareAssetServices bAM_HardwareAsset, IBAM_AssetStatusService assetStatusService, IBAM_UserService userService, IReportingService reportingService) { bam_ApiClient = new BAM_ApiClient(); Task.Run(() => bam_ApiClient.Setup()).Wait(); //if (!Debugger.IsAttached) // Debugger.Launch(); //else // Debugger.Break(); _estService = estService ?? new EST_Service(); _hardwareAssetService = bAM_HardwareAsset ?? new BAM_HardwareAssetServices(bam_ApiClient); _reportingService = reportingService ?? new ReportingService(); _reportings = new List <BAM_ReportingBsm>(); _billables = new List <BAM_ReportingBsm>(); _progressReport = new ServiceProgressReportBsm(); _BAM_ModelLookupService = new EST_BAM_ModelLookupService(); }
public async Task Setup() { _bamClient = new BAM_ApiClient(); Task.Run(() => _bamClient.Setup()).Wait(); }