public void ConvertBasicStringToEnum_Success()
 {
     Assert.Equal(AuthenticationType.Enumeration.Basic, AuthenticationType.ToEnum("@basic"));
 }
 public void ConvertStringToEnum_Fails(string value)
 {
     Assert.Throws <QAToolKitCoreException>(() => AuthenticationType.ToEnum(value));
 }
 public void ConvertOAuth2StringToEnum_Success()
 {
     Assert.Equal(AuthenticationType.Enumeration.OAuth2, AuthenticationType.ToEnum("@oauth2"));
 }
 public void ConvertApiKeyStringToEnum_Success()
 {
     Assert.Equal(AuthenticationType.Enumeration.ApiKey, AuthenticationType.ToEnum("@apikey"));
 }
 public void ConvertCustomerStringToEnum_Success()
 {
     Assert.Equal(AuthenticationType.Enumeration.Customer, AuthenticationType.ToEnum("@customer"));
 }
 public void ConvertAdministratorStringToEnum_Success()
 {
     Assert.Equal(AuthenticationType.Enumeration.Administrator, AuthenticationType.ToEnum("@administrator"));
 }
 public void ConvertBasicObjectToEnum_Success()
 {
     Assert.Equal(AuthenticationType.Enumeration.Basic, AuthenticationType.ToEnum(AuthenticationType.Basic));
 }
 public void ConvertApiKeyObjectToEnum_Success()
 {
     Assert.Equal(AuthenticationType.Enumeration.ApiKey, AuthenticationType.ToEnum(AuthenticationType.ApiKey));
 }
 public void ConvertOAuth2ObjectToEnum_Success()
 {
     Assert.Equal(AuthenticationType.Enumeration.OAuth2, AuthenticationType.ToEnum(AuthenticationType.OAuth2));
 }
 public void ConvertAdministratorObjectToEnum_Success()
 {
     Assert.Equal(AuthenticationType.Enumeration.Administrator, AuthenticationType.ToEnum(AuthenticationType.Administrator));
 }
 public void ConvertCustomerObjectToEnum_Success()
 {
     Assert.Equal(AuthenticationType.Enumeration.Customer, AuthenticationType.ToEnum(AuthenticationType.Customer));
 }