Exemple #1
0
 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
     };
 }
Exemple #3
0
        public void IdentityGenerator_UsesRustflakesIdentityGeneratorByDefault()
        {
            var testFeature = new RequestCorrelationFeature();

            testFeature.IdentityGenerator.Should().BeOfType <RustflakesIdentityGenerator>();
        }
Exemple #4
0
        public void HeaderName_HasDefaultValue()
        {
            var testFeature = new RequestCorrelationFeature();

            testFeature.HeaderName.Should().NotBeNullOrWhiteSpace();
        }