Beispiel #1
0
        private void UpdateTestcases(TestsystemDto testsystem)
        {
            const string testfile = @"LocalTests.dll";

            byte[] data;
            using (var wcfClient = new WcfClient(_serverAdr))
            {
                data = wcfClient.FetchDll(_nodename, testsystem.Name);
            }

            using (var fileStream = new FileStream(testfile, FileMode.Create, FileAccess.Write))
            {
                fileStream.Write(data, 0, data.Length);
            }
            _testcaseProvider = new TestcaseProvider(testfile);
            _testcaseProvider.CreateAppDomain();
            _testcaseProviderKey = testsystem.Name;
        }
Beispiel #2
0
 void ISettingsService.StoreTestsystem(TestsystemDto testsystem)
 {
     _testsystemRepository.Store(Mapper.Map <Testsystem>(testsystem));
 }