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
// Pre build events | |
if $(ConfigurationName) == Release ( | |
del *.nupkg | |
echo "[PRE-BUILD] Deleted old *.nupkg" | |
) | |
// Post Build events | |
echo "[POST-BUILD] Started" |
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 Moq; | |
namespace BaseMock | |
{ | |
public partial class BaseMock<TInterface, TAdapter> | |
where TInterface : class | |
where TAdapter : class, new() | |
{ | |
protected readonly Mock<TInterface> mock = new(); |
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 static class ClassUtils | |
{ | |
private static List<string> Enumerables = new List<string>() { "IList", "ICollection", "IEnumerable", "IReadOnlyList", "IReadOnlyCollection" }; | |
public static object GetPropertyValue<T>(T source, string property) | |
{ | |
if (!property.Contains(".")) | |
return GetProperty(source, property); | |
var path = property.Split(new[] { '.' }, 2); |
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 Polly; | |
using Polly.Contrib.WaitAndRetry; | |
namespace CSharp.Tools | |
{ | |
public abstract class AbstractHandler | |
{ | |
/// <summary> | |
/// Regular "do work" | |
/// </summary> |
NewerOlder