- Google Chrome
- MS Office
- Dropbox
- IntelliJ
- Alfred
- Oversight
- Docker for Mac
- Skype
- Slack
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
[Fact] | |
public void Get_NoArgs_ReturnsAllPeople() | |
{ | |
var people = new List<Person> | |
{ | |
new Person {Name = "Johan", Age = 37}, | |
new Person {Name = "Angela", Age = 34}, | |
new Person {Name = "Robert", Age = 36} | |
}; |
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
[Fact] | |
public void Get_NoArgs_ReturnsEmptyList() | |
{ | |
// Setup repository to return an empty list | |
this._repository.Setup(r => r.FindAll()) | |
.Returns(new List<Person>()); | |
// Pass the mock repository to the controllers constructor | |
var controller = new PersonController(this._repository.Object); |
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
public class PersonControllerSpec | |
{ | |
private readonly Mock<IPersonRepository> _repository; | |
public PersonControllerSpec() | |
{ | |
this._repository = new Mock<IPersonRepository>(); | |
} | |
} |
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
[Route("api/[controller]")] | |
[ApiController] | |
public class PersonController : Controller | |
{ | |
private readonly IPersonRepository _repository; | |
public PersonController(IPersonRepository _repository) | |
{ | |
this._repository = _repository; | |
} |
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
public interface IPersonRepository | |
{ | |
IReadOnlyCollection<Person> FindAll(); | |
void Add(Person person); | |
} |
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
public class Person | |
{ | |
public string Name { get; set; } | |
public int Age { get; set; } | |
public bool IsValid => !string.IsNullOrWhiteSpace(this.Name); | |
} |
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
# Rules in this file were initially inferred by Visual Studio IntelliCode from the C:\Workspace\Uniforms codebase based on best match to current usage at 12-4-2019 | |
# You can modify the rules from these initially generated values to suit your own policies | |
# You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference | |
[*.cs] | |
#Core editorconfig formatting - indentation | |
#use soft tabs (spaces) for indentation | |
indent_style = space | |
indent_size = 4 |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
" Kotlin Vim Plugin # https://github.com/udalov/kotlin-vim | |
Plugin 'udalov/kotlin-vim' | |
" Syntax checking # https://github.com/vim-syntastic/syntastic |
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
cd /usr/local/bin | |
wget https://github.com/docker/compose/releases/download/1.13.0/docker-compose-Linux-x86_64 | |
mv docker-compose* docker-compose | |
chmod +x docker-compose |