public async Task When_Passing_Null_Parameter_Then_Exception_Is_Thrown()
        {
            // ARRANGE
            InitializeFakeObjects();

            // ACT & ASSERT
            await Assert.ThrowsAsync <ArgumentNullException>(() => _validateConfirmationCodeAction.Execute(null));

            await Assert.ThrowsAsync <ArgumentNullException>(() => _validateConfirmationCodeAction.Execute(string.Empty));
        }
Exemple #2
0
 public async Task <bool> ValidateCode(string code)
 {
     return(await _validateConfirmationCodeAction.Execute(code));
 }