public void can_build_custom_instance() { var counter = _builder.Build(() => new CustomCounter()); counter.Should().NotBeNull(); counter.Should().BeOfType <CustomCounter>(); }
public void Can_build_custom_instance() { // Arrange CustomCounter Builder() => new CustomCounter(); // Act var counter = _builder.Build(Builder); // Assert counter.Should().NotBeNull(); counter.Should().BeOfType <CustomCounter>(); }
public void ResolveCounterFromRegistry() { // ReSharper disable UnusedVariable var metric = _registry.Counter( // ReSharper restore UnusedVariable CounterOptions, () => CounterBuilder.Build()); }
public void ResolveCounterFromRegistry() { _registry.Counter( CounterOptions, () => CounterBuilder.Build()); }
/// <inheritdoc /> public void Decrement(CounterOptions options, long amount) { _registry.Counter(options, () => _counterBuilder.Build()).Decrement(amount); }
/// <inheritdoc /> public ICounter Instance(CounterOptions options) { return(Instance(options, () => _counterBuilder.Build())); }
/// <inheritdoc /> public void Decrement(CounterOptions options, MetricTags tags) { _registry.Counter(options, tags, () => _counterBuilder.Build()).Decrement(); }