public void Constructor_WithAllMandatoryOptions_ShouldInit() { //Arrange ICryptographyService cryptoService = MockHelper.GetMockedCrpytoService <Foo>(); BewitPayloadContext context = new BewitPayloadContext(typeof(string)) .SetCryptographyService(() => cryptoService) .SetVariablesProvider(() => new MockHelper.MockedVariablesProvider()) .SetRepository(() => new DefaultNonceRepository()); //Act var provider = new BewitTokenGenerator <Foo>(new BewitOptions(), context); //Assert provider.Should().NotBeNull(); }