Class DefaultServiceLocatorBehaviorTests
Complementary behavioral tests for DefaultServiceLocator covering type-keying semantics, post-removal TryGet state, message content of guard exceptions, and replace flows.
Inherited Members
Namespace: Serenity.ServiceLocator.Tests.Application
Assembly: Tests.dll
Syntax
public class DefaultServiceLocatorBehaviorTests
Constructors
DefaultServiceLocatorBehaviorTests()
Declaration
public DefaultServiceLocatorBehaviorTests()
Methods
Contains_DoesNotThrow_WhenNothingRegistered()
Declaration
public void Contains_DoesNotThrow_WhenNothingRegistered()
Get_Missing_ExceptionMessageNamesTheType()
Declaration
public void Get_Missing_ExceptionMessageNamesTheType()
Get_ReturnsInstanceUsableThroughInterface()
Declaration
public void Get_ReturnsInstanceUsableThroughInterface()
Operations_OnOneType_DoNotAffectAnotherType()
Declaration
public void Operations_OnOneType_DoNotAffectAnotherType()
Register_Duplicate_ExceptionMessageNamesTheType()
Declaration
public void Register_Duplicate_ExceptionMessageNamesTheType()
Register_KeyedByGenericArgument_ConcreteTypeNotRegisteredSeparately()
Declaration
public void Register_KeyedByGenericArgument_ConcreteTypeNotRegisteredSeparately()
Register_Null_ArgumentNullExceptionUsesServiceParamName()
Declaration
public void Register_Null_ArgumentNullExceptionUsesServiceParamName()
Register_SameInstanceUnderInterfaceAndConcrete_AreIndependentEntries()
Declaration
public void Register_SameInstanceUnderInterfaceAndConcrete_AreIndependentEntries()
Remove_Missing_ExceptionMessageNamesTheType()
Declaration
public void Remove_Missing_ExceptionMessageNamesTheType()
Replace_ViaRemoveThenRegister_GetReturnsNewImplementation()
Declaration
public void Replace_ViaRemoveThenRegister_GetReturnsNewImplementation()
SetUp()
Declaration
public void SetUp()
TryGet_AfterRemove_ReturnsFalseAndNull()
Declaration
public void TryGet_AfterRemove_ReturnsFalseAndNull()
TryGet_RegisteredService_OutParamIsUsableThroughInterface()
Declaration
public void TryGet_RegisteredService_OutParamIsUsableThroughInterface()