Пример #1
0
 public void DiscoverSimpleType()
 {
     using (var domain = new TypeDiscoveryDomain())
     {
         Feature.WithScenario("Discovery a simple interface type")
         .Given(domain.ThisType_ToDiscover, typeof(IRoleProfile))
         .When(domain.TheTypeDiscoveryIsExecuted)
         .Then(domain.This_TypeShouldBeDiscovered, typeof(DefaultAgentProfile))
         .ExecuteWithReport();
     }
 }
Пример #2
0
 public void DiscoverSimpleType()
 {
     using (var domain = new TypeDiscoveryDomain())
     {
         Feature.WithScenario("Discovery a simple interface type")
             .Given(domain.ThisType_ToDiscover, typeof(IRoleProfile))
             .When(domain.TheTypeDiscoveryIsExecuted)
             .Then(domain.This_TypeShouldBeDiscovered, typeof(DefaultAgentProfile))
             .ExecuteWithReport();
     }
 }
Пример #3
0
 public void DiscoverGenericType()
 {
     using (var domain = new TypeDiscoveryDomain())
     {
         Feature.WithScenario("Discovery a generic interface type")
         .Given(domain.ThisType_ToDiscover, typeof(IPipelineStep <WebServicePublisherContext>))
         .When(domain.TheTypeDiscoveryIsExecuted)
         .Then(domain.This_TypeShouldBeDiscovered, typeof(SendMessagesStep))
         .ExecuteWithReport();
     }
 }
Пример #4
0
 public void DiscoverGenericType()
 {
     using (var domain = new TypeDiscoveryDomain())
     {
         Feature.WithScenario("Discovery a generic interface type")
             .Given(domain.ThisType_ToDiscover, typeof(IPipelineStep<WebServicePublisherContext>))
             .When(domain.TheTypeDiscoveryIsExecuted)
             .Then(domain.This_TypeShouldBeDiscovered, typeof(SendMessagesStep))
             .ExecuteWithReport();
     }
 }