Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
private static string _homepage = "http://rkr.devel.aedes.ee/"; | |
[Test] | |
[TestCase("xxxx?-*", "Teie otsingul ei olnud tulemusi.")] | |
public void ReadPivot(string searchItem, string expectedResult) | |
{ | |
using (var d = new ChromeDriver()) | |
{ | |
// Arrange | |
d.Navigate().GoToUrl(_homepage); |
This file contains 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 UnityEngine; | |
using System.Collections; | |
using System.Linq; | |
using System.Text; | |
using UnityEngine.UI; | |
using Object = UnityEngine.Object; | |
public class SearchBehaviour : MonoBehaviour | |
{ |
This file contains 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
public static class IdentityUtil | |
{ | |
public static string GetCurrentIdentityDomainName() | |
{ | |
var identity = WindowsIdentity.GetCurrent(); | |
if (identity == null || !identity.IsAuthenticated || identity.IsSystem) | |
return null; | |
return GetDomainName(identity.Name); | |
} |
This file contains 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.Linq.Expressions; | |
namespace GenericSpecificationPattern | |
{ | |
public interface ISpecification<T> | |
{ | |
Expression<Func<T, bool>> Act { get; } | |
bool IsSatisfiedBy(T entity); | |
} |
This file contains 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> | |
/// https://en.wikipedia.org/wiki/Epoch_(reference_date) | |
/// </summary> | |
public static class DateTimeValidator | |
{ | |
public static DateTime Epoch => Epoch1900; | |
public readonly static DateTime Epoch1900 = new DateTime(1900, 1, 1); | |
public readonly static DateTime EpochSqlDateTime = (DateTime)SqlDateTime.MinValue; | |
public static bool IsValid(DateTime dateTime) |
This file contains 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
private static SqlConnection GetDatabaseConnection() | |
{ | |
var connectionString = ConfigurationManager.ConnectionStrings["exampleEntities"].ConnectionString; | |
var csBuilder = new EntityConnectionStringBuilder(connectionString); | |
var connection = new SqlConnection(csBuilder.ProviderConnectionString); | |
return connection; | |
} | |
public static void Analyze() | |
{ |
This file contains 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
public interface IRepository<T> | |
{ | |
IQueryable<T> Filter(Expression<Func<T, bool>> predicate); | |
int Insert(T entity); | |
int Delete(T entity); | |
int Save(); | |
} |
This file contains 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
void Main() | |
{ | |
foreach(var run in LoadTestRuns | |
.Where(o=> o.LoadTestName == "baseline" && o.RunDuration == 7200) | |
.Select(o=> new {o.LoadTestRunId, o.StartTime, o.EndTime}) | |
){ | |
run.Dump(); | |
var testruns = run.LoadTestRunId; | |
var failedTests = LoadTestMessageView2 | |
.Where(o=>o.LoadTestRunId==testruns && o.TestCaseName!=null) |
This file contains 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
<system.net> | |
<defaultProxy> | |
<proxy bypassonlocal="False" usesystemdefault="True" proxyaddress="http://127.0.0.1:8888" /> | |
</defaultProxy> | |
</system.net> |
NewerOlder