[ExpectedException(typeof(ArgumentException))]                              // wrong exception type used
        public void VerifySignupEmailAddress_NullVerificationCode_ThrowsException() // name having ending underscore, why
        {
            //prepare
            string validEmail = "*****@*****.**";
            string invalidVerificationCode = null;

            IShopOwnerRegistrationService shopOwnerRegistrationService = _kernel.Get <IShopOwnerRegistrationService>();

            // act
            shopOwnerRegistrationService.VerifySignupEmailAddress(validEmail, invalidVerificationCode);
        }
        [ExpectedException(typeof(ArgumentException))] // wrong exception type used
        public void VerifySignupEmailAddress_EmptyVerificationCode_ThrowsException()
        {
            //prepare
            string validEmail = "*****@*****.**";
            string invalidVerificationCode = string.Empty;

            IShopOwnerRegistrationService shopOwnerRegistrationService = _kernel.Get <IShopOwnerRegistrationService>();

            // act
            shopOwnerRegistrationService.VerifySignupEmailAddress(validEmail, invalidVerificationCode);
        }
        public void VerifySignupEmailAddress_ValidVerificationCode() // name format violation
        {
            //prepare
            string validEmail            = "*****@*****.**";
            string validVerificationCode = "123";

            var repositoryMock = _kernel.GetMock <IMembershipRepository>();

            _kernel.GetMock <IMembershipRepositoryFactory>().Setup(x => x.CreateMembershipRepository(UserTypeOptions.ShopOwner))
            .Returns(repositoryMock.Object);

            IShopOwnerRegistrationService shopOwnerRegistrationService = _kernel.Get <IShopOwnerRegistrationService>();


            // act
            shopOwnerRegistrationService.VerifySignupEmailAddress(validEmail, validVerificationCode);

            // assert
            repositoryMock.VerifyAll();
        }