Ejemplo n.º 1
0
 void GivenThatTheBusMonitorReturnsAnOverview(bool expectFresh)
 {
     _expected = new Topic { Name = "testtopic" };
     var overview = new Overview
     {
         Topics = new List<Topic>
     {
         _expected,
         new Topic { Name="testtopic2" }
     }
     };
     _busMonitor.GetOverview(expectFresh).Returns(overview);
 }
Ejemplo n.º 2
0
 void GivenThatTheBusMonitorReturnsAnOverviewWithDuplicateTopics()
 {
     _expected = new Topic { Name = "testtopic" };
     var overview = new Overview
     {
         Topics = new List<Topic>
     {
         _expected,
         new Topic { Name="testtopic" }
     }
     };
     _busMonitor.GetOverview().Returns(overview);
 }
Ejemplo n.º 3
0
 void WhenBuildingModel(string topicname, bool forceFresh)
 {
     try
     {
         _result = _builder.Build(new TopicCriteria(topicname, forceFresh));
     }
     catch (Exception ex)
     {
         _ex = ex;
     }
 }