/// <summary> /// Initializes a new instance of the <see cref="SampleTestTemplate"/> class. /// </summary> protected SampleTestTemplate(WindowsServiceFixture fixture) { try { _fixture = fixture; // ReSharper disable once InconsistentNaming string samples_pmodes = Path.Combine(".", "samples", "pmodes"); CleanSlateReceivingPModesFrom(samples_pmodes); CleanSlateSendingPModesFrom(samples_pmodes); CreateOrClearDirectory(@".\messages\out"); CreateOrClearDirectory(@".\messages\in"); CreateOrClearDirectory(@".\messages\receipts"); CreateOrClearDirectory(@".\messages\errors"); CreateOrClearDirectory(@".\messages\exceptions"); } catch (Exception) { SenderMsh?.Dispose(); _fixture?.Dispose(); throw; } }
protected override void Disposing(bool isDisposing) { _consoleHost.Dispose(); _windowsService.Dispose(); }
protected virtual void Disposing(bool isDisposing) { SenderMsh?.Dispose(); _fixture.Dispose(); }