public void GivenWarningEventShouldReturnTelemetryEventStrategy() { TelemetryFactory telemetryFactory = new TelemetryFactory(); ITelemetryStrategy telemetryStrategy = telemetryFactory.Strategy(new EventType(new EventTypes().Warning())); telemetryStrategy.Should().BeOfType <TelemetryEvent>(); }
public void GivenCriticalEventShouldReturnTelemetryExceptionStrategy() { TelemetryFactory telemetryFactory = new TelemetryFactory(); ITelemetryStrategy telemetryStrategy = telemetryFactory.Strategy(new EventType(new EventTypes().Critical())); telemetryStrategy.Should().BeOfType <TelemetryException>(); }
public void GivenInformationEventShouldReturnTelemetryEventStrategy() { TelemetryFactory telemetryFactory = new TelemetryFactory(); ITelemetryStrategy telemetryStrategy = telemetryFactory.Strategy(new EventType(new EventTypes().Information())); telemetryStrategy.Should().BeOfType <TelemetryEvent>(); }