public void ReturnPasswordString_WithSpecifiedInConstantLength_WhenCalled()
        {
            var mockedRanodmProvider           = new Mock <IRandomProvider>();
            var customPasswordGeneratorService = new CustomPasswordGeneratorService(mockedRanodmProvider.Object);
            var actualLengtht = customPasswordGeneratorService.GenerateRandomPassword().Length;

            mockedRanodmProvider.Setup(x => x.GetRandomNumber(0, customPasswordGeneratorService.GetPasswordLentgh - 1)).Returns(0);

            var expectedLenght = customPasswordGeneratorService.GetPasswordLentgh;

            Assert.AreEqual(expectedLenght, actualLengtht);
        }
        public void InitizalizeCharactersFromAsciiTableCorrectly_WhenTheServiceIsCreated()
        {
            var mockedRanodmProvider = new Mock <IRandomProvider>();

            var customPasswordGeneratorService = new CustomPasswordGeneratorService(mockedRanodmProvider.Object);
            var expectedCharacters             =
                Enumerable.Range(
                    customPasswordGeneratorService.GetStartSymbolCode,
                    customPasswordGeneratorService.GetNumberOfLastValidSymbol - customPasswordGeneratorService.GetStartSymbolCode)
                .Select(c => (char)c).ToList();


            CollectionAssert.AreEqual(expectedCharacters, customPasswordGeneratorService.GetCharacters);
        }