protected override void Given()
        {
            otpGenerator = kernel.Get<OtpGenerator>();

            fakeDateTimeWrapper = new Mock<IDateTimeWrapper>();

        }
        protected override void Given()
        {
            otpGenerator = kernel.Get<OtpGenerator>();

            fakeDateTimeWrapper = new Mock<IDateTimeWrapper>();
            fakeDateTimeWrapper.Setup(d => d.GetNow())
                .Returns(new DateTime()); 
        }
        protected override void Given()
        {

            _fakePasswordGenerator = new Mock<IPasswordGenerator>();
            _fakePasswordGenerator
                .Setup(p => p.GeneratePassword()).Returns("aPassword");

            _fakeSignatureProvider = new Mock<ISignatureProvider>();
            _fakeSignatureProvider
                .Setup(p => p.Sign(It.IsAny<SignatureSettings>())).Returns("hdnffgrtdggsbs64t46464ghe");

            otpGenerator = new OtpGenerator(_fakePasswordGenerator.Object, _fakeSignatureProvider.Object);
        }
 private void ConfigureApi()
 {
     _apiConfig = new ApiConfiguration();
     _otpGenerator = _apiConfig.ConfigureApi();
     _dateTimeWrapper = _apiConfig.GetInstance();
 }