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
namespace IEvangelist.CSharper.Calculator | |
{ | |
public interface ICalculator<T> | |
{ | |
T Add(T leftOperand, T rightOperand); | |
T Subtract(T leftOperand, T rightOperand); | |
T Multiply(T leftOperand, T rightOperand); | |
T Divide(T leftOperand, T rightOperand); | |
} | |
} |
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
{ | |
"version": "1.0.0-*", | |
"description": "IEvangelist.CSharper.CalculatorTests Class Library", | |
"authors": [ "David Pine" ], | |
"dependencies": { | |
"IEvangelist.CSharper.Calculator": "1.0.0-*", | |
"xunit": "2.1.0", | |
"xunit.runner.dnx": "2.1.0-rc1-build204" | |
}, | |
"commands": { |
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
{ | |
"projects": [ "src", "test" ], | |
"sdk": { | |
"version": "1.0.0-rc1-update1" | |
} | |
} |
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
{ | |
"Framework": "jasmine", | |
"TestHarnessReferenceMode": "AMD", | |
"Tests": [ | |
{ | |
"Path": "wwwroot/app", | |
"Includes": [ "*.spec.js" ] | |
} | |
], | |
"References": [ |
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 void Configure(IApplicationBuilder app, | |
IHostingEnvironment env, | |
ILoggerFactory loggerFactory) | |
{ | |
loggerFactory.AddConsole(Configuration.GetSection("Logging")); | |
loggerFactory.AddDebug(); | |
if (env.IsDevelopment()) | |
{ | |
app.UseBrowserLink(); |
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 void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddGlimpse(); | |
services.AddMvc(); | |
} |
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
@{ | |
ViewData["Title"] = "Angular 2"; | |
} | |
<app class="container" style="display: block;">Loading...</app> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>@ViewData["Title"]</title> | |
<environment names="Development"> | |
<!-- Css --> | |
<link rel="stylesheet" asp-href-include="~/css/*.css"> |
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
@using WebApplication1 | |
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers" |
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
using System; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNet.Mvc; | |
namespace WebApplication1.Controllers | |
{ | |
[Route("api/[controller]")] | |
public class RandomController : Controller | |
{ |