262 references to ArgConstants
Templates.Mvc.Tests (262)
BlazorTemplateTest.cs (32)
22[ArgConstants.UseProgramMain], 23[ArgConstants.NoHttps], 24[ArgConstants.Empty], 25[ArgConstants.NoInteractivity], 26[ArgConstants.WebAssemblyInteractivity], 27[ArgConstants.AutoInteractivity], 28[ArgConstants.GlobalInteractivity], 29[ArgConstants.GlobalInteractivity, ArgConstants.WebAssemblyInteractivity], 30[ArgConstants.GlobalInteractivity, ArgConstants.AutoInteractivity], 31[ArgConstants.NoInteractivity, ArgConstants.UseProgramMain, ArgConstants.NoHttps, ArgConstants.Empty], 42public Task BlazorWebTemplate_IndividualAuth(string[] args) => BlazorWebTemplate_Core([ArgConstants.IndividualAuth, ..args]); 50? BlazorWebTemplate_Core([ArgConstants.IndividualAuth, ArgConstants.UseLocalDb, ArgConstants.UseProgramMain]) 51: BlazorWebTemplate_Core([ArgConstants.IndividualAuth, ArgConstants.UseLocalDb]); 59var expectedLaunchProfileNames = args.Contains(ArgConstants.NoHttps) 69if (!args.Contains(ArgConstants.IndividualAuth)) 78if (args.Contains(ArgConstants.UseLocalDb)) 108if (args.Contains(ArgConstants.IndividualAuth) && !args.Contains(ArgConstants.Empty)) 130if (args.Contains(ArgConstants.IndividualAuth)) 138if (args.Contains(ArgConstants.Empty)) 145if (args.Contains(ArgConstants.NoInteractivity)) 155if (!args.Contains(ArgConstants.IndividualAuth)) 161if (args.Contains(ArgConstants.Empty)) 168if (args.Contains(ArgConstants.NoInteractivity))
MvcTemplateTest.cs (48)
38public async Task MvcTemplate_NoAuthNoHttpsFSharp() => await MvcTemplateCore(languageOverride: "F#", args: new[] { ArgConstants.NoHttps } ); 46public async Task MvcTemplate_NoAuthNoHttpsCSharp() => await MvcTemplateCore(languageOverride: null, new[] { ArgConstants.NoHttps }); 50public async Task MvcTemplate_ProgramMainNoAuthCSharp() => await MvcTemplateCore(languageOverride: null, new[] { ArgConstants.UseProgramMain }); 54public async Task MvcTemplate_ProgramMainNoAuthNoHttpsCSharp() => await MvcTemplateCore(languageOverride: null, new[] { ArgConstants.UseProgramMain, ArgConstants.NoHttps }); 62var noHttps = args?.Contains(ArgConstants.NoHttps) ?? false; 154? new[] { ArgConstants.UseProgramMain, ArgConstants.NoHttps } 155: new[] { ArgConstants.UseProgramMain } 157? new[] { ArgConstants.NoHttps } 320[InlineData("IndividualB2C", new[] { ArgConstants.UseProgramMain })] 321[InlineData("IndividualB2C", new[] { ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 322[InlineData("IndividualB2C", new[] { ArgConstants.UseProgramMain, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 328[InlineData("IndividualB2C", new[] { ArgConstants.UseProgramMain, ArgConstants.NoHttps })] 329[InlineData("IndividualB2C", new[] { ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 330[InlineData("IndividualB2C", new[] { ArgConstants.UseProgramMain, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 336[InlineData("SingleOrg", new[] { ArgConstants.UseProgramMain })] 337[InlineData("SingleOrg", new[] { ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 338[InlineData("SingleOrg", new[] { ArgConstants.UseProgramMain, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 339[InlineData("SingleOrg", new[] { ArgConstants.CallsGraph })] 340[InlineData("SingleOrg", new[] { ArgConstants.UseProgramMain, ArgConstants.CallsGraph })] 346[InlineData("SingleOrg", new[] { ArgConstants.UseProgramMain, ArgConstants.NoHttps })] 347[InlineData("SingleOrg", new[] { ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 348[InlineData("SingleOrg", new[] { ArgConstants.UseProgramMain, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 349[InlineData("SingleOrg", new[] { ArgConstants.CallsGraph, ArgConstants.NoHttps })] 350[InlineData("SingleOrg", new[] { ArgConstants.UseProgramMain, ArgConstants.CallsGraph, ArgConstants.NoHttps })]
RazorPagesTemplateTest.cs (46)
49? new[] { ArgConstants.UseProgramMain, ArgConstants.NoHttps } 50: new[] { ArgConstants.UseProgramMain } 52? new[] { ArgConstants.NoHttps } 142? new[] { ArgConstants.UseProgramMain, ArgConstants.NoHttps } 143: new[] { ArgConstants.UseProgramMain } 145? new[] { ArgConstants.NoHttps } 263[InlineData("IndividualB2C", new[] { ArgConstants.UseProgramMain })] 264[InlineData("IndividualB2C", new[] { ArgConstants.UseProgramMain, ArgConstants.NoHttps })] 265[InlineData("IndividualB2C", new[] { ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 266[InlineData("IndividualB2C", new[] { ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 267[InlineData("IndividualB2C", new[] { ArgConstants.UseProgramMain, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 268[InlineData("IndividualB2C", new[] { ArgConstants.UseProgramMain, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 274[InlineData("SingleOrg", new[] { ArgConstants.UseProgramMain })] 275[InlineData("SingleOrg", new[] { ArgConstants.UseProgramMain, ArgConstants.NoHttps })] 276[InlineData("SingleOrg", new[] { ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 277[InlineData("SingleOrg", new[] { ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 278[InlineData("SingleOrg", new[] { ArgConstants.UseProgramMain, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 279[InlineData("SingleOrg", new[] { ArgConstants.UseProgramMain, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 283[InlineData("SingleOrg", new[] { ArgConstants.CallsGraph })] 284[InlineData("SingleOrg", new[] { ArgConstants.UseProgramMain, ArgConstants.CallsGraph })] 285[InlineData("SingleOrg", new[] { ArgConstants.CallsGraph, ArgConstants.NoHttps })] 286[InlineData("SingleOrg", new[] { ArgConstants.UseProgramMain, ArgConstants.CallsGraph, ArgConstants.NoHttps })]
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
63var noHttps = args?.Contains(ArgConstants.NoHttps) ?? false;
WebApiTemplateTest.cs (135)
42[InlineData("IndividualB2C", new [] { ArgConstants.UseControllers })] 43[InlineData("IndividualB2C", new [] { ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 44[InlineData("IndividualB2C", new [] { ArgConstants.UseControllers, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 49[InlineData("IndividualB2C", new[] { ArgConstants.NoHttps })] 50[InlineData("IndividualB2C", new [] { ArgConstants.UseControllers, ArgConstants.NoHttps })] 51[InlineData("IndividualB2C", new [] { ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 52[InlineData("IndividualB2C", new [] { ArgConstants.UseControllers, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 57[InlineData("IndividualB2C", new [] { ArgConstants.UseProgramMain })] 58[InlineData("IndividualB2C", new [] { ArgConstants.UseProgramMain, ArgConstants.UseControllers })] 59[InlineData("IndividualB2C", new [] { ArgConstants.UseProgramMain, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 60[InlineData("IndividualB2C", new [] { ArgConstants.UseProgramMain, ArgConstants.UseControllers, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 65[InlineData("IndividualB2C", new [] { ArgConstants.UseProgramMain, ArgConstants.NoHttps })] 66[InlineData("IndividualB2C", new [] { ArgConstants.UseProgramMain, ArgConstants.UseControllers, ArgConstants.NoHttps })] 67[InlineData("IndividualB2C", new [] { ArgConstants.UseProgramMain, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 68[InlineData("IndividualB2C", new [] { ArgConstants.UseProgramMain, ArgConstants.UseControllers, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 74[InlineData("SingleOrg", new [] { ArgConstants.UseControllers })] 75[InlineData("SingleOrg", new [] { ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 76[InlineData("SingleOrg", new [] { ArgConstants.UseControllers, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 77[InlineData("SingleOrg", new [] { ArgConstants.CallsGraph })] 78[InlineData("SingleOrg", new [] { ArgConstants.UseControllers, ArgConstants.CallsGraph })] 83[InlineData("SingleOrg", new [] { ArgConstants.NoHttps })] 84[InlineData("SingleOrg", new [] { ArgConstants.UseControllers, ArgConstants.NoHttps })] 85[InlineData("SingleOrg", new [] { ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 86[InlineData("SingleOrg", new [] { ArgConstants.UseControllers, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 87[InlineData("SingleOrg", new [] { ArgConstants.CallsGraph, ArgConstants.NoHttps })] 88[InlineData("SingleOrg", new [] { ArgConstants.UseControllers, ArgConstants.CallsGraph, ArgConstants.NoHttps })] 93[InlineData("SingleOrg", new [] { ArgConstants.UseProgramMain })] 94[InlineData("SingleOrg", new [] { ArgConstants.UseProgramMain, ArgConstants.UseControllers })] 95[InlineData("SingleOrg", new [] { ArgConstants.UseProgramMain, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 96[InlineData("SingleOrg", new [] { ArgConstants.UseProgramMain, ArgConstants.UseControllers, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite })] 97[InlineData("SingleOrg", new [] { ArgConstants.UseProgramMain, ArgConstants.CallsGraph })] 98[InlineData("SingleOrg", new [] { ArgConstants.UseProgramMain, ArgConstants.UseControllers, ArgConstants.CallsGraph })] 104[InlineData("SingleOrg", new [] { ArgConstants.UseProgramMain, ArgConstants.NoHttps })] 105[InlineData("SingleOrg", new [] { ArgConstants.UseProgramMain, ArgConstants.UseControllers, ArgConstants.NoHttps })] 106[InlineData("SingleOrg", new [] { ArgConstants.UseProgramMain, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 107[InlineData("SingleOrg", new [] { ArgConstants.UseProgramMain, ArgConstants.UseControllers, ArgConstants.CalledApiUrlGraphMicrosoftCom, ArgConstants.CalledApiScopesUserReadWrite, ArgConstants.NoHttps })] 108[InlineData("SingleOrg", new [] { ArgConstants.UseProgramMain, ArgConstants.CallsGraph, ArgConstants.NoHttps })] 109[InlineData("SingleOrg", new [] { ArgConstants.UseProgramMain, ArgConstants.UseControllers, ArgConstants.CallsGraph, ArgConstants.NoHttps })] 116public Task WebApiTemplateNoHttpsFSharp() => WebApiTemplateCore(languageOverride: "F#", args: new[] { ArgConstants.NoHttps }); 124public Task WebApiTemplateNoHttpsCSharp() => WebApiTemplateCore(languageOverride: null, new[] { ArgConstants.NoHttps }); 128public Task WebApiTemplateProgramMainCSharp() => WebApiTemplateCore(languageOverride: null, args: new[] { ArgConstants.UseProgramMain }); 132public Task WebApiTemplateProgramMainNoHttpsCSharp() => WebApiTemplateCore(languageOverride: null, args: new[] { ArgConstants.UseProgramMain, ArgConstants.NoHttps }); 136public Task WebApiTemplateControllersCSharp() => WebApiTemplateCore(languageOverride: null, args: new[] { ArgConstants.UseControllers }); 140public Task WebApiTemplateControllersNoHttpsCSharp() => WebApiTemplateCore(languageOverride: null, args: new[] { ArgConstants.UseControllers, ArgConstants.NoHttps }); 144public Task WebApiTemplateProgramMainControllersCSharp() => WebApiTemplateCore(languageOverride: null, args: new[] { ArgConstants.UseProgramMain, ArgConstants.UseControllers }); 148public Task WebApiTemplateProgramMainControllersNoHttpsCSharp() => WebApiTemplateCore(languageOverride: null, args: new[] { ArgConstants.UseProgramMain, ArgConstants.UseControllers, ArgConstants.NoHttps }); 162? new[] { ArgConstants.UseProgramMain, ArgConstants.UseControllers, ArgConstants.NoOpenApi } 163: new[] { ArgConstants.UseProgramMain, ArgConstants.NoOpenApi } 165? new[] { ArgConstants.UseControllers, ArgConstants.NoOpenApi } 166: new[] { ArgConstants.NoOpenApi }; 191? new[] { ArgConstants.UseProgramMain, ArgConstants.UseControllers, ArgConstants.NoOpenApi, ArgConstants.NoHttps } 192: new[] { ArgConstants.UseProgramMain, ArgConstants.NoOpenApi, ArgConstants.NoHttps } 194? new[] { ArgConstants.UseControllers, ArgConstants.NoOpenApi, ArgConstants.NoHttps } 195: new[] { ArgConstants.NoOpenApi, ArgConstants.NoHttps }; 198var noHttps = args.Contains(ArgConstants.NoHttps); 223var noHttps = args?.Contains(ArgConstants.NoHttps) ?? false;