This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Sets the step argument conversion infrasuructure as default for CreateSet and CreateInstance | |
| /// </summary> | |
| /// <remarks> | |
| /// This method has to be called once, in a static ctor for example. Note: this way of setting is not | |
| /// supported for parallel execution. | |
| /// </remarks> | |
| private static void SetupStepArgumentConverterValueRetriever() | |
| { | |
| var assistService = TechTalk.SpecFlow.Assist.Service.Instance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [BeforeScenario] | |
| public void BeforeScenario() | |
| { | |
| var tablesToClean = new[] {"OrderItems", "Orders", "Audit"}; | |
| using (var connection = new SqlConnection(ConfigurationManager.ConnectionStrings["DB"].ConnectionString)) | |
| { | |
| foreach (var table in tablesToClean) | |
| { | |
| connection.Open(); | |
| using (var cmd = new SqlCommand("TRUNCATE TABLE " + table, connection)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Globalization; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| namespace TechTalk.SpecRun.Helpers | |
| { | |
| internal static class TestFolders | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TfsGitSession : IDisposable | |
| { | |
| IDisposable httpsDefinition; | |
| public TfsGitSession() | |
| { | |
| // we need to perform this... through reflection | |
| //httpsDefinition = new SmartSubtransportDefinition<TfsSmartSubtransport>("https://", 2); | |
| var tfsSmartSubTransportType = Type.GetType("Microsoft.TeamFoundation.Git.CoreServices.TfsSmartSubtransport, Microsoft.TeamFoundation.Git.CoreServices, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Xml; | |
| using System.Xml.Linq; | |
| using DotNetOpenAuth.AspNet; | |
| using DotNetOpenAuth.AspNet.Clients; | |
| using DotNetOpenAuth.Messaging; |
NewerOlder