Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }
Пример #4
0
 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> >()));
 }