public override void SetUp() { _idToName.ClearAll(); _container = Container.For <DevelopmentModeRegistry>(); _session = _container.GetInstance <IDocumentStore>().OpenSession(); _container.GetInstance <IDocumentStore>().Advanced.Clean.CompletelyRemoveAll(); }
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); }
public void get_first_value() { cache.Fill(Key, 42); cache.Fill("anotherKey", 99); cache.First.ShouldBe(42); cache.ClearAll(); cache.First.ShouldBe(0); }
public override void SetUp() { IdToName.ClearAll(); Store = TestingDocumentStore.Basic().As <DocumentStore>(); Store.Advanced.Clean.CompletelyRemoveAll(); Session = Store.OpenSession(); }
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); }
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)); }
public override void SetUp() { _streams.ClearAll(); _store = DocumentStore.For(opts => { opts.Connection(ConnectionSource.ConnectionString); opts.AutoCreateSchemaObjects = AutoCreate.All; }); Context.State.Store(_store); }
void IDisposable.Dispose() { _byType.Each(x => (x as IDisposable)?.Dispose()); _byName.Each(cache => { cache.Each(x => (x as IDisposable)?.Dispose()); }); _byName.ClearAll(); _byType.ClearAll(); }
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); }
/// <summary> /// Removes all Instances and resets the default Instance determination /// </summary> public void RemoveAll() { _instances.ClearAll(); resetDefault(); }
void IDisposable.Dispose() { _byName.ClearAll(); _byType.ClearAll(); }
public void ClearAll() { _results.ClearAll(); }
public override void SetUp() { Traced.ClearAll(); }