void GivenThatTheBusMonitorReturnsAnOverview(bool expectFresh)
 {
     _expected = new Subscription { Name = "testsubscription" };
     var overview = new Overview
     {
         Topics = new List<Topic>
         {
             new Topic { Name="testtopic", Subscriptions = new List<Subscription> { _expected}},
             new Topic { Name="testtopic2", Subscriptions = new List<Subscription> { new Subscription { Name="testsubscription2" }}},
         }
     };
     _busMonitor.GetOverview(expectFresh).Returns(overview);
 }
 void GivenThatTheBusMonitorReturnsAnOverviewWithDuplicateSubscriptions()
 {
     _expected = new Subscription { Name = "testsubscription" };
     var overview = new Overview
     {
         Topics = new List<Topic>
         {
             new Topic { Name="testtopic", Subscriptions = new List<Subscription> { _expected, _expected}},
             new Topic { Name="testtopic2", Subscriptions = new List<Subscription> { _expected}},
         }
     };
     _busMonitor.GetOverview().Returns(overview);
 }
 void WhenBuildingModel(string topicname, string subscriptionname, bool forceFresh)
 {
     try
     {
         _result = _builder.Build(new SubscriptionCriteria(topicname, subscriptionname, forceFresh));
     }
     catch (Exception ex)
     {
         _ex = ex;
     }
 }