Example #1
0
 public static DefaultTargets SetDefaultTargets(this IBuildPropertiesSession context,
                                                DefaultTargets defaultTargets)
 {
     context.Set(BuildProps.DefaultTargets, defaultTargets);
     return(defaultTargets);
 }
Example #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"));
 }
Example #4
0
 public static string SetFlubuWebApiBaseUrl(this IBuildPropertiesSession context, string webApiUrl)
 {
     context.Set(BuildProps.FlubuWebApiBaseUrl, webApiUrl);
     return(webApiUrl);
 }
Example #5
0
 public static BuildVersion SetBuildVersion(this IBuildPropertiesSession context, BuildVersion version)
 {
     context.Set(BuildProps.BuildVersion, version);
     return(version);
 }