Skip to content

Instantly share code, notes, and snippets.

@takahirohonda
Created December 17, 2019 10:35
Show Gist options
  • Save takahirohonda/c2e2b75c4680f8ccc5cf29b28c7af5bd to your computer and use it in GitHub Desktop.
Save takahirohonda/c2e2b75c4680f8ccc5cf29b28c7af5bd to your computer and use it in GitHub Desktop.
ServiceCollectionExtensionTests - MockClasses
using ApplicationCore.Extensions;
namespace UnitTests.ApplicationCore.Extensions
{
[Service(typeof(IMockClassForExtensionsTestsA), Lifetime.Transient)]
public class MockClassForExtensionsTestsA : IMockClassForExtensionsTestsA
{ }
public interface IMockClassForExtensionsTestsA
{ }
[Service(typeof(IMockClassForExtensionsTestsB), Lifetime.Scoped)]
public class MockClassForExtensionsTestsB : IMockClassForExtensionsTestsB
{ }
public interface IMockClassForExtensionsTestsB
{ }
[Service(typeof(IMockClassForExtensionsTestsC), Lifetime.Transient)]
public class MockClassForExtensionsTestsC : IMockClassForExtensionsTestsC
{ }
public interface IMockClassForExtensionsTestsC
{ }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment