Пример #1
0
 protected override void SetupTestParamters()
 {
     applicationName = "ACM";
     simulationName  = "Hybrid";
     jobId           = 1;
     process         = new InMemoryProcess();
     using (var fstream = File.Open(@"models\Hybrid_v0.51_rev1.1_UQ_0809_sinter.json", FileMode.Open))
     {
         byte[] bytes;
         using (var ms = new MemoryStream())
         {
             fstream.CopyTo(ms);
             bytes = ms.ToArray();
             var f = new SimpleFile()
             {
                 name = "configuration", content = ms.ToArray()
             };
             inputFiles.Add(f);
         }
     }
     using (var fstream = File.Open(@"models\Hybrid_v0.51_rev1.1_UQ_0809.acmf", FileMode.Open))
     {
         byte[] bytes;
         using (var ms = new MemoryStream())
         {
             fstream.CopyTo(ms);
             bytes = ms.ToArray();
             var f = new SimpleFile()
             {
                 name = "aspenfile", content = ms.ToArray()
             };
             inputFiles.Add(f);
         }
     }
 }
Пример #2
0
 protected override void SetupTestParamters()
 {
     applicationName = "AspenPlus";
     simulationName  = "MEA";
     jobId           = 2;
     process         = new InMemoryProcess();
     using (var fstream = File.Open(@"models\mea-abs-sinter.json", FileMode.Open))
     {
         byte[] bytes;
         using (var ms = new MemoryStream())
         {
             fstream.CopyTo(ms);
             bytes = ms.ToArray();
             var f = new SimpleFile()
             {
                 name = "configuration", content = ms.ToArray()
             };
             inputFiles.Add(f);
         }
     }
     using (var fstream = File.Open(@"models\mea-abs.bkp", FileMode.Open))
     {
         byte[] bytes;
         using (var ms = new MemoryStream())
         {
             fstream.CopyTo(ms);
             bytes = ms.ToArray();
             var f = new SimpleFile()
             {
                 name = "aspenfile", content = ms.ToArray()
             };
             inputFiles.Add(f);
         }
     }
 }