Informedica.GenForm.Settings.Environments.Environment.Create C# (CSharp) Method

Create() public static method

public static Create ( string machineName, string environmentName ) : Environment
machineName string
environmentName string
return Environment
        public static Environment Create(string machineName, string environmentName)
        {
            return new Environment(machineName, environmentName);
        }

Usage Example

Exemplo n.º 1
0
 public void ThatWhenAnEnvironmentIsCreatedWithoutANameAnExceptionIsThrown()
 {
     try
     {
         Environment.Create("Test", string.Empty);
         Assert.Fail("An exception should be thrown");
     }
     catch (Exception e)
     {
         Assert.IsNotInstanceOfType(e, typeof(AssertFailedException));
     }
 }
All Usage Examples Of Informedica.GenForm.Settings.Environments.Environment::Create