Skip to content

Commit

Permalink
Tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaytak committed Jun 26, 2020
1 parent 5efc6b2 commit 1ae800c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ public void AddTokenAcquisition_AddsWithCorrectLifetime()
Assert.Equal(typeof(TokenAcquisition), actual.ImplementationType);
Assert.Null(actual.ImplementationInstance);
Assert.Null(actual.ImplementationFactory);
},
actual =>
{
Assert.Equal(ServiceLifetime.Scoped, actual.Lifetime);
Assert.Equal(typeof(ITokenAcquisitionInternal), actual.ServiceType);
Assert.Null(actual.ImplementationInstance);
Assert.NotNull(actual.ImplementationFactory);
});
}

Expand Down

0 comments on commit 1ae800c

Please sign in to comment.