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.Collections.Generic; | |
using FluentTc; | |
using FluentTc.Domain; | |
public static void Main() | |
{ | |
IConnectedTc connectedTc = new RemoteTc() | |
.Connect(to => to.ToHost("tc") | |
.AsGuest()); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Title</title> | |
<meta charset="utf-8"> | |
<style> | |
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz); | |
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic); | |
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic); |
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
REM choco install vagrant -y | |
REM choco install virtualbox -y | |
REM md debian | |
REM cd debian | |
REM vagrant init neuromobilemarketing/debian-jessie-debops-amd64 | |
REM vagrant up --provider virtualbox | |
REM vagrant ssh | |
REM Installing controlling container | |
docker pull generik/ansible |
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
[Test] | |
public void Serial_DataContractSerializable() | |
{ | |
var serial = new Serial(); | |
serial.Should().BeDataContractSerializable(); | |
} |
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
[TestFixture] | |
public class SerializationTests | |
{ | |
[Serializable] | |
public class Serial | |
{ | |
public string Name { get; set; } | |
} | |
[Test] |
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
var builds = new RemoteTc() | |
.Connect(_ => _.ToHost("teamcity.codebetter.com").AsGuest()) | |
.GetBuilds(_ => | |
_.NotPersonal() | |
.Pinned() | |
.Status(BuildStatus.Success) | |
.SinceDate(DateTime.Now.AddDays(-1)) | |
.BuildConfiguration(__ => __.Id("FluentTc"))); |
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
var builds = new RemoteTc() | |
.Connect(_ => _.ToHost("teamcity.codebetter.com").AsGuest()) | |
.GetBuilds(_ => _.BuildConfiguration(__ => __.Id("FluentTc")), | |
_ => _.Start(20).Count(10), | |
_ => _.IncludeStartDate().IncludeFinishDate()); |
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
var builds = new RemoteTc() | |
.Connect(_ => _.ToHost("teamcity.codebetter.com").AsGuest()) | |
.GetBuilds(_ => _.BuildConfiguration(__ => __.Id("FluentTc")), | |
_ => _.IncludeStartDate().IncludeFinishDate()); |
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
var builds = new RemoteTc() | |
.Connect(_ => _.ToHost("teamcity.codebetter.com").AsGuest()) | |
.GetBuilds(_ => _.BuildConfiguration(__ => __.Id("FluentTc"))); |
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 class TeamFoundationAnnotationRetriever | |
{ | |
private readonly Regex m_Regex = new Regex(@"^(?<changeset>\d+)(?<codeLine>.*)", RegexOptions.Compiled | RegexOptions.Multiline); | |
public List<Changeset> GetAnnotations(string filepath, string codeText) | |
{ | |
var versionControlServer = CreateVersionControlServer(); | |
return m_Regex.Matches(ExecutePowerTools(filepath)) | |
.Cast<Match>() |
NewerOlder