container/tests/Unity.Specification/Constructor.cs

83 строки
2.3 KiB
C#
Исходник Постоянная ссылка Обычный вид История

using Microsoft.VisualStudio.TestTools.UnitTesting;
using Unity;
namespace Compiled.Constructor
{
[TestClass]
public class Injection : Unity.Specification.Constructor.Injection.SpecificationTests
{
public override IUnityContainer GetContainer()
{
2019-03-24 00:53:09 +03:00
return new UnityContainer().AddExtension(new ForceCompillation());
}
}
[TestClass]
public class Attribute : Unity.Specification.Constructor.Attribute.SpecificationTests
{
public override IUnityContainer GetContainer()
{
2019-03-24 00:53:09 +03:00
return new UnityContainer().AddExtension(new ForceCompillation());
}
}
2019-01-01 05:18:26 +03:00
[TestClass]
public class Parameters : Unity.Specification.Constructor.Parameters.SpecificationTests
{
public override IUnityContainer GetContainer()
{
2019-03-24 00:53:09 +03:00
return new UnityContainer().AddExtension(new ForceCompillation());
2019-01-01 05:18:26 +03:00
}
}
[TestClass]
public class Overrides : Unity.Specification.Constructor.Overrides.SpecificationTests
{
public override IUnityContainer GetContainer()
{
2019-03-24 00:53:09 +03:00
return new UnityContainer().AddExtension(new ForceCompillation());
}
}
}
namespace Resolved.Constructor
{
[TestClass]
public class Injection : Unity.Specification.Constructor.Injection.SpecificationTests
{
public override IUnityContainer GetContainer()
{
2019-03-24 00:53:09 +03:00
return new UnityContainer().AddExtension(new ForceActivation());
}
}
[TestClass]
public class Attribute : Unity.Specification.Constructor.Attribute.SpecificationTests
{
public override IUnityContainer GetContainer()
{
2019-03-24 00:53:09 +03:00
return new UnityContainer().AddExtension(new ForceActivation());
}
}
2019-01-01 05:18:26 +03:00
[TestClass]
public class Parameters : Unity.Specification.Constructor.Parameters.SpecificationTests
{
public override IUnityContainer GetContainer()
{
2019-03-24 00:53:09 +03:00
return new UnityContainer().AddExtension(new ForceActivation());
2019-01-01 05:18:26 +03:00
}
}
[TestClass]
public class Overrides : Unity.Specification.Constructor.Overrides.SpecificationTests
{
public override IUnityContainer GetContainer()
{
2019-03-24 00:53:09 +03:00
return new UnityContainer().AddExtension(new ForceActivation());
}
}
}