Exemplo n.º 1
0
 /// <summary>
 /// Creates a fictive test <see cref="ImplementationSelection"/>.
 /// </summary>
 internal static ImplementationSelection CreateTestImplementation2() => new ImplementationSelection
 {
     InterfaceUri   = FeedTest.Test2Uri,
     FromFeed       = FeedTest.Sub2Uri,
     ID             = "id2",
     ManifestDigest = new ManifestDigest(sha256: "abc"),
     Version        = new ImplementationVersion("1.0"),
     Architecture   = new Architecture(OS.Windows, Cpu.I586),
     Languages      = { "en-US" },
     DocDir         = "doc",
     Stability      = Stability.Developer,
     Bindings       =
     {
         new EnvironmentBinding {
             Name = "TEST2_PATH_SELF", Default = "default", Mode = EnvironmentMode.Prepend
         },
         new EnvironmentBinding {
             Name = "TEST2_VALUE", Value = "test2", Mode = EnvironmentMode.Replace
         }
     },
     Dependencies =
     {
         new Dependency
         {
             InterfaceUri = FeedTest.Test1Uri,
             Bindings     =
             {
                 new ExecutableInVar  {
                     Name = "exec-in-var", Command = Command.NameTest
                 },
                 new ExecutableInPath {
                     Name = "exec-in-path", Command = Command.NameTest
                 }
             }
         }
     },
     Commands = { CommandTest.CreateTestCommand2() }
 };