Exemple #1
0
        public override void SetUp()
        {
            _idToName.ClearAll();

            _container = Container.For <DevelopmentModeRegistry>();
            _session   = _container.GetInstance <IDocumentStore>().OpenSession();
            _container.GetInstance <IDocumentStore>().Advanced.Clean.CompletelyRemoveAll();
        }
Exemple #2
0
        public override void SetUp()
        {
            _idToName.ClearAll();

            ConnectionSource.CleanBasicDocuments();
            _container = Container.For <DevelopmentModeRegistry>();
            _session   = _container.GetInstance <IDocumentSession>();
        }
        public override void SetUp()
        {
            _streams.ClearAll();

            _store = TestingDocumentStore.Basic();

            Context.State.Store(_store);
        }
Exemple #4
0
 public void get_first_value()
 {
     cache.Fill(Key, 42);
     cache.Fill("anotherKey", 99);
     cache.First.ShouldBe(42);
     cache.ClearAll();
     cache.First.ShouldBe(0);
 }
Exemple #5
0
        public override void SetUp()
        {
            IdToName.ClearAll();

            Store = TestingDocumentStore.Basic().As <DocumentStore>();
            Store.Advanced.Clean.CompletelyRemoveAll();

            Session = Store.OpenSession();
        }
Exemple #6
0
        public void ReadTopics()
        {
            Topic = TopicLoader.LoadDirectory(_settings.Root);

            Topic.ParseAndOrder().Wait();

            _topicByUrl.ClearAll();
            Topic.AllTopicsInOrder().Each(x => _topicByUrl[x.Url] = x);
        }
        public override void SetUp()
        {
            _streams.ClearAll();

            _container = Container.For <DevelopmentModeRegistry>();
            _store     = _container.GetInstance <IDocumentStore>();
            _store.Advanced.Clean.CompletelyRemoveAll();

            Context.State.Store(_store);
        }
Exemple #8
0
        public override void TearDown()
        {
            _receivers.Each(x => x.Dispose());
            _receivers.ClearAll();

            _senders.Each(x => x.Dispose());
            _senders.ClearAll();

            _messageLogger.BuildReports().Each(x => Context.Reporting.Log(x));
        }
Exemple #9
0
        public override void SetUp()
        {
            _streams.ClearAll();

            _store = DocumentStore.For(opts =>
            {
                opts.Connection(ConnectionSource.ConnectionString);
                opts.AutoCreateSchemaObjects = AutoCreate.All;
            });

            Context.State.Store(_store);
        }
Exemple #10
0
        void IDisposable.Dispose()
        {
            _byType.Each(x => (x as IDisposable)?.Dispose());

            _byName.Each(cache =>
            {
                cache.Each(x => (x as IDisposable)?.Dispose());
            });

            _byName.ClearAll();
            _byType.ClearAll();
        }
Exemple #11
0
        public override void TearDown()
        {
            _receivers.Each(x => x.Dispose());
            _receivers.ClearAll();

            _senders.Each(x => x.Dispose());
            _senders.ClearAll();

            _busLogger.BuildReports().Each(x => Context.Reporting.Log(x));

            _receiverStore.Dispose();
            _receiverStore = null;
            _sendingStore.Dispose();
            _sendingStore = null;
        }
 public HtmlTag RemoveAttr(string attribute)
 {
     if (IsCssClassAttr(attribute))
     {
         _cssClasses.Clear();
     }
     else if (IsCssStyleAttr(attribute))
     {
         _customStyles.Clear();
     }
     else if (IsMetadataAttr(attribute))
     {
         _metaData.ClearAll();
     }
     else
     {
         _htmlAttributes.Remove(attribute);
     }
     return(this);
 }
Exemple #13
0
 /// <summary>
 /// Removes all Instances and resets the default Instance determination
 /// </summary>
 public void RemoveAll()
 {
     _instances.ClearAll();
     resetDefault();
 }
Exemple #14
0
 void IDisposable.Dispose()
 {
     _byName.ClearAll();
     _byType.ClearAll();
 }
 public void ClearAll()
 {
     _results.ClearAll();
 }
 public override void SetUp()
 {
     Traced.ClearAll();
 }