Exemplo n.º 1
0
 /// <summary>
 /// When overridden in a derived class, executes the unit of work that is to be tested.
 /// </summary>
 /// <param name="container"></param>
 /// <returns></returns>
 protected abstract TToValidate When(IResolveInstance container);
Exemplo n.º 2
0
 protected override Testable When(IResolveInstance container)
 {
     return(container.GetInstance <ITestableFactory>().Get(_expectId, _expectName));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new instance of the <see cref="TestBase{TToValidate}"/> class.
 /// </summary>
 /// <param name="configureContainer">Custom <see cref="IConfigureContainer"/> implementation</param>
 /// <param name="resolveInstances">Custom <see cref="IResolveInstance"/> implementation</param>
 protected TestBase(IConfigureContainer configureContainer, IResolveInstance resolveInstances)
 {
     _configureContainer = configureContainer;
     _resolveInstances   = resolveInstances;
 }