C# Class CQRS.Tests.KeyValueStorage.DocumentDbTests

Mostrar archivo Open project: mlidbom/Composable.Monolithic

Protected Methods

Method Description
CreateStore ( ) : IDocumentDb
OpenSession ( IDocumentDb store, ISingleContextUseGuard guard = null ) : IDocumentDbSession

Private Methods

Method Description
AddingAndRemovingObjectInUnitOfWorkResultsInNoObjectBeingSaved ( ) : void
AddingAndRemovingObjectResultsInNoObjectBeingSaved ( ) : void
AddingRemovingAndAddingObjectInUnitOfWorkResultsInNoObjectBeingSaved ( ) : void
CallingSaveWithAnInteraceAsTypeParameterDoesNotExplode ( ) : void
CanSaveAndLoadAggregate ( ) : void
CanSaveAndLoadAggregateForUpdate ( ) : void
DeletingAllObjectsOfATypeLeavesNoSuchObjectsInTheDBButLeavesOtherObjectsInPlaceAndReturnsTheNumberOfDeletedObjects ( ) : void
DeletingAllObjectsOfATypeLeavesObjectOfInheritingTypes ( ) : void
FetchesAllinstancesPerType ( ) : void
GetAllHandlesSubTyping ( ) : void
GetAllIdsShouldOnlyReturnResultsWithTheGivenType ( ) : void
GetAllWithIdsReturnsAsManyResultsAsPassedIds ( ) : void
GetAllWithIdsReturnsTheSameInstanceForAnyPreviouslyFetchedDocuments ( ) : void
GetAllWithIdsThrowsNoSuchDocumentExceptionExceptionIfAnyIdIsMissing ( ) : void
GetByIdsShouldReturnOnlyMatchingResultEvenWhenMoreResultsAreInTheCache ( ) : void
GetHandlesSubTyping ( ) : void
HandlesAValueBeingAddedAndDeletedDuringTheSameSession ( ) : void
HandlesDeletesOfInstancesAlreadyLoaded ( ) : void
HandlesDeletesOfInstancesNotYetLoaded ( ) : void
HandlesHashSets ( ) : void
HandlesHashSetsInObjects ( ) : void
HandlesInstancesOfDifferentTypesWithTheSameId ( ) : void
LoadingRemovingAndAddingObjectInUnitOfWorkResultsInObjectBeingSaved ( ) : void
ObjectsWhoseKeysDifferOnlyByCaseAreConsideredTheSameObjectForCompatabilityWithSqlServer ( ) : void
ObjectsWhoseKeysDifferOnlyByTrailingSpacesTrailingWhiteSpaceCaseAreConsideredTheSameObjectForCompatabilityWithSqlServer ( ) : void
RepeatedlyAddingAndRemovingObjectResultsInNoObjectBeingSaved ( ) : void
ReturnsSameInstanceOnLoadAfterSave ( ) : void
ReturnsSameInstanceOnRepeatedLoads ( ) : void
ThrowsExceptionIfYouTryToSaveAnIHasPersistentIdentityWithNoId ( ) : void
ThrowsExceptionWhenAttemptingToDeleteNonExistingValue ( ) : void
ThrowsIfUsedByMultipleHttpRequests ( ) : void
ThrowsIfUsedByMultipleThreads ( ) : void
ThrowsWhenAttemptingToSaveExistingAggregate ( ) : void
TracksAndUpdatesLoadedAggregates ( ) : void
TryingToFetchNonExistentItemDoesNotCauseSessionToTryAndAddItWithANullInstance ( ) : void

Method Details

CreateStore() protected abstract method

protected abstract CreateStore ( ) : IDocumentDb
return IDocumentDb

OpenSession() protected static method

protected static OpenSession ( IDocumentDb store, ISingleContextUseGuard guard = null ) : IDocumentDbSession
store IDocumentDb
guard ISingleContextUseGuard
return IDocumentDbSession