Below is a template for using TestBed to test Angular 2 components. import { async, TestBed } from '@angular/core/testing'; import { SomeComponent } from './some.component'; beforeEach(() => ...
100% Code Coverage Doesn't Mean It Works
Tests are great. I like testing, tests, and talking about testing and tests. I think code coverage is useful. It can identify gaps in testing, providing a “hey, maybe you should test over here” no...
Comparing Classes: C# 6, ES6/ES2015 JavaScript, and TypeScript
Classes are a useful construct typically associated with object-oriented programming. In C# classes are a first-class construct of the language. Classes were introduced a bit later for JavaScript....
We Replaced a Multi-Application Home-Grown Authentication System
On June 9, 2016 I had an amazing opportunity to deliver a talk bearing the name of this post title at NDC Oslo. An embed of the video is at the end of this post. Here’s a write-up: Where We Start...
TypeScript: Where's My C# Style Object Initializers?
In C#, you’re able to initialize an object while newing it up. using System; public class Program { public static void Main() { var person = new Person { Given...
TypeScript: Missing Properties When Using Type Assertions
In C# and other languages, you may be familiar with the concept of a cast – basically, explicitly coercing a type into another type. In C# this looks like (MyClass)x. When using a C# cast, all of ...
Lindt Dark Chocolate Percentage EXCELLENCE Bars: Nutrition Comparison
Here’s a comparison of the dark chocolate Lindt EXCELLENCE bars that have a minimum percentage of cocoa associated with them. Enjoy! (Note: bold text is mine for emphasis) Cocoa % ...
Can We Make Some Changes First? Pull Requesting a GitHub Pull Request
Pull request contributions are awesome. But, sometimes prior to merge there’s a few things you’d like changed – or, perhaps more than a few. As a reviewer, if you feel like your being too picky but...
GitHub Issues: Let's Take Action
As a development team, you’re probably tracking your work somehow – whether it’s GitHub issues or some other application or system. Which is great! Things are being documented, worked on, and compl...
Copying App Settings and Connection Strings Between Azure Web Apps
You have a few options if you’re looking to copy Azure app settings and connection strings between Azure Web Apps. One of those options is using the Azure portal, copy and pasting until the task is...