C# Класс Tests.CommonTests

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
factory IPersistentQueueFactory

Открытые методы

Метод Описание
BuildFactory ( ) : IPersistentQueueFactory

Abstract method used to build the tested Class' factory

CommonTests ( ) : System
Create ( string queueName ) : IPersistentQueue

Shortcut to call Create(string name) on the concrete test class' factory

CreateNew ( ) : IPersistentQueue

Shortcut to call CreateNew() on the concrete test class' factory

CreateNew ( string queueName ) : IPersistentQueue

Shortcut to call CreateNew(string name) on the concrete test class' factory

InstanceTypeCheck ( ) : void

Performs type checks on the Interfaces returned by factory methods

Приватные методы

Метод Описание
Init ( ) : void
ShouldBeAbleToDequeueAComplexObjectAfterDisposeAndRecreation ( ) : void
ShouldHideInvisibleItemFromPeek ( ) : void
ShouldHideInvisibleMessages ( ) : void
ShouldHideInvisibleMessagesUntilTimeout ( ) : void
ShouldQueueAndDequeueInt ( ) : void
ShouldQueueAndDequeueString ( ) : void
ShouldQueueAndPeekString ( ) : void
ShouldRemoveInvisibleItemWhenDeleted ( ) : void
ShouldReturnNullWhenQueueIsEmpty ( ) : void
ShouldReturnSameQueueIfTheNameIsEqualToAnother ( ) : void
ShouldThrownExceptionTryingToCreateNewThatAlreadyExists ( ) : void

Описание методов

BuildFactory() публичный абстрактный Метод

Abstract method used to build the tested Class' factory
public abstract BuildFactory ( ) : IPersistentQueueFactory
Результат IPersistentQueueFactory

CommonTests() публичный Метод

public CommonTests ( ) : System
Результат System

Create() публичный Метод

Shortcut to call Create(string name) on the concrete test class' factory
public Create ( string queueName ) : IPersistentQueue
queueName string
Результат IPersistentQueue

CreateNew() публичный Метод

Shortcut to call CreateNew() on the concrete test class' factory
public CreateNew ( ) : IPersistentQueue
Результат IPersistentQueue

CreateNew() публичный Метод

Shortcut to call CreateNew(string name) on the concrete test class' factory
public CreateNew ( string queueName ) : IPersistentQueue
queueName string
Результат IPersistentQueue

InstanceTypeCheck() публичный абстрактный Метод

Performs type checks on the Interfaces returned by factory methods
public abstract InstanceTypeCheck ( ) : void
Результат void

Описание свойств

factory защищенное свойство

A Factory that builds the test class
protected IPersistentQueueFactory factory
Результат IPersistentQueueFactory