Пример #1
0
 public static DefaultTargets SetDefaultTargets(this IBuildPropertiesSession context,
                                                DefaultTargets defaultTargets)
 {
     context.Set(BuildProps.DefaultTargets, defaultTargets);
     return(defaultTargets);
 }
Пример #2
0
 public static T Set <T>(this IBuildPropertiesSession context, string propName, T value)
 {
     context.Set(propName, value);
     return(value);
 }
 public void Get_CaseInsensitiveGet_Succesfull()
 {
     _session.Set("SomeKey", "Value");
     Assert.Equal("Value", _session.Get <string>("SOMEKEY"));
 }
Пример #4
0
 public static string SetFlubuWebApiBaseUrl(this IBuildPropertiesSession context, string webApiUrl)
 {
     context.Set(BuildProps.FlubuWebApiBaseUrl, webApiUrl);
     return(webApiUrl);
 }
Пример #5
0
 public static BuildVersion SetBuildVersion(this IBuildPropertiesSession context, BuildVersion version)
 {
     context.Set(BuildProps.BuildVersion, version);
     return(version);
 }