public void Password_ShouldHaveError(string testValue)
        {
            var userLogin = FakeModelsRepository.GetFakeUser();
            var validator = new SignInValidator(userLogin);

            validator.ShouldHaveValidationErrorFor(model => model.Password, testValue);
        }
        public void IpAddress_ShouldNotHaveError(string testValue)
        {
            var userLogin = FakeModelsRepository.GetFakeUser();
            var validator = new SignInValidator(userLogin);

            validator.ShouldNotHaveValidationErrorFor(model => model.IpAddress, testValue);
        }
        public void Login_BlockFor10Second(int count)
        {
            var userLogin      = FakeModelsRepository.GetFakeUser(count, DateTime.Now, DateTime.Now, DateTime.Now.AddSeconds(10));
            var ipAddressValue = "192.168.4.5";
            var validator      = new SignInValidator(userLogin);

            validator.ShouldHaveValidationErrorFor(model => model.Login, ipAddressValue);
        }
        public void Login_AfterOneFailure(int count)
        {
            var ipAddressValue = "192.168.4.5";
            var userLogin      = FakeModelsRepository.GetFakeUser(count);
            var validator      = new SignInValidator(userLogin);

            validator.ShouldNotHaveValidationErrorFor(model => model.Login, ipAddressValue);
        }