Skip to content

Instantly share code, notes, and snippets.

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="InputSimulator" Version="1.0.4" />
</ItemGroup>
@issafram
issafram / NLogLogger.cs
Created January 4, 2017 04:39
Named Logger
public class NLogLogger : ILogger
{
public void Trace(string message)
{
var logger = this.GetLogger();
logger.Trace(message);
}
public void Debug(string message)
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Faker;
using Faker.Generators;
using Xunit;
using Xunit.Abstractions;
using OfficeOpenXml;
using System;
using System.Linq;
using System.Linq.Expressions;
public interface IRepository<TEntity, TKey>
{
/// <summary>
/// Inserts the specified entity.
/// </summary>
/// <param name="entity">The entity.</param>