internal TMXGetTestResultDetailsCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Exemplo n.º 2
0
 internal TMXNewTestPlatformCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXSetCurrentTestResultCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Exemplo n.º 4
0
 internal TmxInvokeTestSuiteCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
Exemplo n.º 5
0
 internal TMXInvokeTestCaseCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXGetTestScenarioStatusCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXAddTestResultDetailCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Exemplo n.º 8
0
 internal BDDAddScenarioCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TmxGetTestSuiteStatusCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
Exemplo n.º 10
0
 internal TMXNewTestSuiteCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Exemplo n.º 11
0
 internal TMXOpenTestScenarioCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXGetTestResultStatusCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXAddSimpleTestResultCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Exemplo n.º 14
0
 internal BDDNewFeatureCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Exemplo n.º 15
0
 internal TMXRemoveTestCaseCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Exemplo n.º 16
0
        public static void InitializeStorage(CommonCmdletBase cmdlet)
        {
//Console.WriteLine("-0005");
            if (!string.IsNullOrEmpty(TMX.Preferences.StorageUsername)) {
            // if (null != TMX.Preferences.StorageUsername && string.Empty != TMX.Preferences.StorageUsername) {
//Console.WriteLine("-0004");
                TMX.Preferences.StorageConnectionString =
                    //@"Data Source=" + 
                    @"Server=" + 
                    TMX.Preferences.StorageServer +
                    //";Initial Catalog=" +
                    ";Database=" +
                    TMX.Preferences.StorageDatabase +
                    ";Username="******";Password="******";";
            } else {
//Console.WriteLine("-0003");
                TMX.Preferences.StorageConnectionString =
                    //@"Data Source=" + 
                    @"Server=" + 
                    TMX.Preferences.StorageServer +
                    //";Initial Catalog=" +
                    ";Database=" +
                    TMX.Preferences.StorageDatabase +
                    ";Integrated Security=SSPI;";
            }
            
            try {
                
//Console.WriteLine("-0002");
                
                cmdlet.WriteVerbose("building configuration...");
//Console.WriteLine("-0001");
//Console.WriteLine(TMX.Preferences.StorageConnectionString);
if (null == Fluently.Configure()) {
    
    Console.WriteLine("Fluently == null");
}
Console.WriteLine("Fluently != null");
    			Fluently.Configure();
//    			    .Database(MsSqlConfiguration
//    			              .MsSql2008
//    			              //.ConnectionString(TMX.Preferences.StorageConnectionString))
//    			              //.ConnectionString(x => x.Is(connString)))
//    			              .ConnectionString(x => x.Is(TMX.Preferences.StorageConnectionString)))
//    			    //.Mappings(m => m.FluentMappings.AddFromAssemblyOf<ProductMap>())
//    			    .Mappings(m => m.FluentMappings
//    			              .AddFromAssemblyOf<TestSuiteMap>())
//    			              //.AddFromAssemblyOf<System.Object>())
//    			    .ExposeConfiguration(CreateSchema)
//    			    .BuildConfiguration();
    			
Console.WriteLine("storage 00001");
    			
    			cmdlet.WriteVerbose("creating session factory...");
    			
    			SessionFactory = Fluently.Configure()
    			    .Database(MsSqlConfiguration
    			              .MsSql2008
    			              .ConnectionString(TMX.Preferences.StorageConnectionString))
    			    .Mappings(m =>m.FluentMappings
    			              //.AddFromAssembly(Assembly.GetExecutingAssembly()))
    			              .AddFromAssemblyOf<TestSuiteMap>())
    			              //.AddFromAssemblyOf<System.Object>())
    			    .BuildSessionFactory();
    			
Console.WriteLine("00002");
    			
    			cmdlet.WriteVerbose("session factory has been created...");
    			
            }
            catch (Exception eSession) {
                cmdlet.WriteError(
                    cmdlet,
                    eSession.InnerException.Message,
                    "SessionFailed",
                    ErrorCategory.InvalidOperation,
                    true);
            }
        }
Exemplo n.º 17
0
 internal TMXSetTestCaseCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Exemplo n.º 18
0
 internal TMXInvokeTestScenarioCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Exemplo n.º 19
0
 internal TMXCloseTestResultCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Exemplo n.º 20
0
 internal TMXNewLoggerCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Exemplo n.º 21
0
 internal TMXCommand(CommonCmdletBase cmdlet)
 {
     this.Cmdlet = cmdlet;
 }
Exemplo n.º 22
0
 internal TmxStartLoggingCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }