public GetProxyFileName ( string controllerName, string controllerSuffix, string fileExtension ) : string | ||
controllerName | string | Der Name des Controllers ohne das "Controller" davor |
controllerSuffix | string | Der Suffix der an den namen des Controllers angehängt wird, z.b.: PSrv |
fileExtension | string | Die Dateienung z.B. js oder ts |
return | string |
public void Suffix_IsNull() { //Arrange var proxyBuilder = new ProxyBuilderHelper(new ProxySettings()); //Act var name = proxyBuilder.GetProxyFileName("home", null, "js"); //Assert Assert.AreEqual(name, "home.js"); }
public void TypeScriptFile_Extensions() { //Arrange var proxyBuilder = new ProxyBuilderHelper(new ProxySettings()); //Act var name = proxyBuilder.GetProxyFileName("Home", "PSrv", "ts"); //Assert Assert.AreEqual(name, "homePSrv.ts"); }
public void ControllerName_Two_Letters() { //Arrange var proxyBuilder = new ProxyBuilderHelper(new ProxySettings()); //Act var name = proxyBuilder.GetProxyFileName("Ho", "PSrv", "js"); //Assert Assert.AreEqual(name, "hoPSrv.js"); }