C# (CSharp) Habanero.Testability.Helpers Namespace

Classes

Name Description
DBNumberGeneratorStub Used to stub out the IDBNumber generator for visual testing with an in memory database as well as for Unit and integration testing.
DataAccessorInMemoryWithMockCommitter DataAccessor that returns a Mock TransactionCommitter. The Mock TransactionCommitter can then be used for testing whether commit was called etc. Also if you are using Mocked out BusinessObjects then you can still test saving etc.
DataAccessorWithMockCommitter DataAccessor that returns a Mock TransactionCommitter. The Mock TransactionCommitter can then be used for testing whether commit was called etc. Also if you are using Mocked out BusinessObjects then you can still test saving etc.
DummyPropertyInfo This class is used by Reflection you cannot construct an instance of Property Info directly. This class only implementes the .Name and .Type interface of the PropertyInfo. This class is copied as is from FluentNHibernate.
FakeMethodInfo
FakePropertyInfo Fake PropertyInfo for testing reflection code e.g. binding, Smooth, testability.
FakeType
HabaneroConsoleLogger Logs any messaged to the console
HabaneroConsoleLoggerFactory Constructs Loggers that log to the Console.
HabaneroLoggerFactoryStub This is a stub implementation of a HabaneroLoggerFactor. GetLogger returns HabaneroLoggerStub Basically just returns a logger that stubs out all methods.
HabaneroLoggerStub Basically just a logger that stubs out all methods.
NonValidatingDataAccessorInMemory This is a DataAccessorInMemory that does not validate the businessObjects. This is very usefull for testing in cases where you need to persist an object that is in a state that would break some validation rules. E.g. Expired samples but you cannot create the expired samples in the normal way since the rule is ExpiryDate > Today.
NonValidatingTransactionCommitter A Transaction Committer for a DataStoreInMemory that does not Validate the BusinessObject before persisting it
NonValidatingTransactionalBusinessObject Wraps a BO in a TransactionalBusinessObject but does not call validate the BO when IsValid is called.
PropDefFake
RandomStringGen
SingleRelDefFake
TransactionalStub