private static void AssertStoreItems(MessageStoreActivationStateListModel model, IEnumerable<MessageStoreActivationState> messageStoreListItems)
 {
     foreach (var messageStoreListItem in messageStoreListItems)
     {
         var foundStore = model.Stores.Single(s => s.Name == messageStoreListItem.Name);
         foundStore.Name.ShouldEqual(messageStoreListItem.Name);
         foundStore.ConnectionString.ShouldEqual(messageStoreListItem.ConnectionString);
         foundStore.TableName.ShouldEqual(messageStoreListItem.TableName);
         foundStore.TypeName.ShouldEqual(messageStoreListItem.TypeName);
         foundStore.Name.ShouldEqual(messageStoreListItem.Name);
     }
 }
 public ViewModelRetrieverResult<MessageStoreActivationStateListModel, MessageStoreActivationStateListModelError> Get()
 {
     try
     {
         IEnumerable<MessageStoreConfig> stores = _storeConfigProvider.Get();
         var model = new MessageStoreActivationStateListModel(stores);
         return new ViewModelRetrieverResult<MessageStoreActivationStateListModel, MessageStoreActivationStateListModelError>(model);
     }
     catch (Exception e)
     {
         return new ViewModelRetrieverResult<MessageStoreActivationStateListModel, MessageStoreActivationStateListModelError>(MessageStoreActivationStateListModelError.GetActivationStateFromConfigError, e);
     }
 }
 public FakeActivationListModelRetriever(MessageStoreActivationStateListModel storeListModel)
 {
     _fakeResult = storeListModel;
 }