public RequestCorrelationFeatureTests() { generator = A.Fake <IIdentityGenerator>(); A.CallTo(() => generator.GenerateIdentity()).Returns(newId); feature = new RequestCorrelationFeature { IdentityGenerator = generator }; }
public RequestCorrelationFeatureTests(AppHostFixture fixture) { appHost = fixture.AppHost; generator = A.Fake <IIdentityGenerator>(); A.CallTo(() => generator.GenerateIdentity()).Returns(newId); feature = new RequestCorrelationFeature { IdentityGenerator = generator }; }
public void IdentityGenerator_UsesRustflakesIdentityGeneratorByDefault() { var testFeature = new RequestCorrelationFeature(); testFeature.IdentityGenerator.Should().BeOfType <RustflakesIdentityGenerator>(); }
public void HeaderName_HasDefaultValue() { var testFeature = new RequestCorrelationFeature(); testFeature.HeaderName.Should().NotBeNullOrWhiteSpace(); }