Skip to content

Instantly share code, notes, and snippets.

@stormoz
stormoz / Covariance
Last active August 29, 2015 13:59
Covariance
namespace CovarianceTests
{
using System.Collections.Generic;
using NUnit.Framework;
public class CovarianceTests
{
[Test]
public void IEnumerableT_Is_Covariant()
{
namespace FunqConventionTests
{
using Funq;//Install-Package Funq
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MyNamespace;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
{
"_links": {
"self": { "href": "/orders" },
"next": { "href": "/orders?page=2" },
"find": { "href": "/orders{?id}", "templated": true }
},
"_embedded": {
"orders": [{
"_links": {
"self": { "href": "/orders/123" },
namespace AutofacResolveMultipleImplementations.BusinessLogic
{
using System;
public enum Service
{
Foo,
Bar
}