Ejemplo n.º 1
0
        /// <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;
            }
        }
Ejemplo n.º 2
0
 protected override void Disposing(bool isDisposing)
 {
     _consoleHost.Dispose();
     _windowsService.Dispose();
 }
Ejemplo n.º 3
0
 protected virtual void Disposing(bool isDisposing)
 {
     SenderMsh?.Dispose();
     _fixture.Dispose();
 }