Exemplo n.º 1
0
 /// <summary>
 /// Creates a fictive test <see cref="ImplementationSelection"/>.
 /// </summary>
 internal static ImplementationSelection CreateTestImplementation1()
 {
     return(new ImplementationSelection
     {
         InterfaceUri = FeedTest.Test1Uri,
         FromFeed = FeedTest.Sub1Uri,
         ID = "id1", ManifestDigest = new ManifestDigest(sha256: "123"), Version = new ImplementationVersion("1.0"),
         Architecture = new Architecture(OS.Windows, Cpu.I586), Languages = { "en-US" },
         DocDir = "doc", Stability = Stability.Developer,
         Bindings =
         {
             new EnvironmentBinding {
                 Name = "TEST1_PATH_SELF", Default = "default", Mode = EnvironmentMode.Append
             },
             new EnvironmentBinding {
                 Name = "TEST1_VALUE", Value = "test1", Mode = EnvironmentMode.Replace
             },
             new EnvironmentBinding {
                 Name = "TEST1_EMPTY", Value = "", Mode = EnvironmentMode.Append
             }
         },
         Dependencies =
         {
             new Dependency
             {
                 InterfaceUri = FeedTest.Test2Uri,
                 Bindings ={ new EnvironmentBinding                {
                   Name = "TEST2_PATH_SUB_DEP", Insert = "sub", Default = "default", Mode = EnvironmentMode.Append
               } }
             }
         },
         Commands = { CommandTest.CreateTestCommand1(), CommandTest.CreateTestCommand1Test() }
     });
 }