DD.WellWorkover.Cloud/AsbCloudInfrastructure.Tests/CommonExtensions.cs

20 lines
347 B
C#
Raw Permalink Normal View History

using Mapster;
using System;
2024-08-19 10:57:31 +05:00
namespace AsbCloudInfrastructure.Tests;
public static class CommonExtensions
{
public static T Copy<T>(this T obj)
{
var copy = obj.Adapt<T>();
return copy;
}
public static T Mutate<T>(this T obj, Action<T> mutation)
{
var copy = obj.Copy();
return copy;
}
}