public void It_should_not_fire_for_untracked_methods() { Service.UntrackedMethod(); StatsdMock.Verify(x => x.LogTiming("dependencies.fooservice.method", It.IsAny <long>(), It.IsAny <Dictionary <string, string> >()), Times.Never); }
public void It_should_time_the_targeted_nested_generic_method_and_log_to_statsd() { Service.TrackedGenericMethod <IEnumerable <object> >(); StatsdMock.Verify(x => x.LogTiming("dependencies.ienumerable`1-object", It.IsAny <long>(), It.IsAny <Dictionary <string, string> >()), Times.Once); }
public void It_should_time_the_targeted_formatted_method_and_log_to_statsd() { Service.TrackedFormattedMethod(); StatsdMock.Verify(x => x.LogTiming("dependencies.fooservice.trackedformattedmethod", It.IsAny <long>(), It.IsAny <Dictionary <string, string> >()), Times.Once); }
public new void Setup() { base.Setup(); StatsdMock.Setup(x => x.LogTiming(It.IsAny <string>(), It.IsAny <long>(), It.IsAny <Dictionary <string, string> >())); }
public void It_should_count_the_targeted_generic_method_and_log_to_statsd() { Service.TrackedGenericMethod <object>(); StatsdMock.Verify(x => x.LogCount("dependencies.object", It.IsAny <int>(), It.IsAny <Dictionary <string, string> >()), Times.Once); }
public new void Setup() { base.Setup(); StatsdMock.Setup(x => x.LogCount(It.IsAny <string>(), It.IsAny <int>(), It.IsAny <Dictionary <string, string> >())); }