internal TMXGetTestResultDetailsCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXNewTestPlatformCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXSetCurrentTestResultCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TmxInvokeTestSuiteCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
 internal TMXInvokeTestCaseCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXGetTestScenarioStatusCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXAddTestResultDetailCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Esempio n. 8
0
 internal BDDAddScenarioCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TmxGetTestSuiteStatusCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }
Esempio n. 10
0
 internal TMXNewTestSuiteCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXOpenTestScenarioCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXGetTestResultStatusCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXAddSimpleTestResultCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Esempio n. 14
0
 internal BDDNewFeatureCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Esempio n. 15
0
 internal TMXRemoveTestCaseCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Esempio 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);
            }
        }
Esempio n. 17
0
 internal TMXSetTestCaseCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXInvokeTestScenarioCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
 internal TMXCloseTestResultCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Esempio n. 20
0
 internal TMXNewLoggerCommand(CommonCmdletBase cmdlet)
     : base(cmdlet)
 {
 }
Esempio n. 21
0
 internal TMXCommand(CommonCmdletBase cmdlet)
 {
     this.Cmdlet = cmdlet;
 }
Esempio n. 22
0
 internal TmxStartLoggingCommand(CommonCmdletBase cmdlet) : base (cmdlet)
 {
 }