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 FullNameConcatenatesFirstAndLastName() | |
{ | |
// Arrange | |
Person personUnderTest = new() | |
{ | |
FirstName = "SomeFirstName", | |
LastName = "SomeSecondName", | |
Email = "Any.Email@anywhere.co.uk" | |
}; |
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 FullNameConcatenatesFirstAndLastName() | |
{ | |
// Arrange | |
Person personUnderTest = new() | |
{ | |
FirstName = "Ned", | |
LastName = "Grady", | |
Email = "Any.Email@nedgrady.co.uk" | |
}; |
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
// Arrange | |
Person personUnderTest = new() | |
{ | |
FirstName = "Ned", | |
LastName = "Grady", | |
Email = "Any.Email@anywhere.co.uk" | |
}; |
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 FullNameConcatenatesFirstAndLastName() | |
{ | |
// Arrange | |
Person personUnderTest = new() | |
{ | |
FirstName = "Ned", | |
LastName = "Grady", | |
Email = "Ned.Grady@nedgrady.co.uk" | |
}; |
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
class Person | |
{ | |
public required string FirstName { get; set; } | |
public required string LastName { get; set; } | |
public required string Email { get; set; } | |
} |
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
const options = [] | |
for (let i = 0; i < 3000; i++) { | |
// add a random string to the array | |
options.push('"' + Math.random().toString(36).slice(2, 7) + '"') | |
} | |
const parser = buildParser(` | |
@top Program { Field ">=30" } | |
Field { ${options.join("|")} } |
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 ExcelExportCapturesCommentsWithFunnyCharacters() | |
{ | |
var transaction = new Transaction | |
{ | |
Comment = "\u0001" | |
}; | |
var transcationExportBuilderUnderTest = new TransactionExportBuilder(); |
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 ExcelExportCapturesTransactionTimestamp() | |
{ | |
var transaction = new Transaction | |
{ | |
Timestamp = DateTime.UtcNow | |
}; | |
var transcationExportBuilderUnderTest = new TransactionExportBuilder(); | |
transcationExportBuilderUnderTest.AddTransaction(transaction); |
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 ExcelExportCapturesTransactionTimestamp() | |
{ | |
var transaction = new Transaction | |
{ | |
Timestamp = DateTime.UtcNow | |
}; | |
var transcationExportBuilderUnderTest = new TransactionExportBuilder(); | |
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 pendingMigrations = Database.GetPendingMigrations(); | |
foreach (var pendingMigration in pendingMigrations) | |
{ | |
Console.WriteLine("Script for migration " + pendingMigration.Name + ":"); | |
var migrationScriptToPrint = pendingMigration.Script; | |
// our pipelines hilariously fail if the string "error" appears anywhere in the build log | |
// so tables/columns with "error" in their name cause a build failure even if everything was OK. |
NewerOlder