public void Autheticate_Data_Is_Correct_Returns_User()
        {
            //arrange
            var email    = AuthentificateTestDataDactory.UT_USER;
            var password = AuthentificateTestDataDactory.UT_USER;

            var sut = AuthentificateTestDataDactory.ProvideService();

            //act
            var user = sut.Autheticate(email, password);

            //assert
            user.Should()
            .NotBeNull();

            user.Name
            .Should()
            .Be(AuthentificateTestDataDactory.UT_USER);

            user.Password
            .Should()
            .Be(password);

            user.Email
            .Should()
            .Be(email);
        }
        public void Autheticate_Incorrect_Password_Returns_Null()
        {
            //arrange
            var sut      = AuthentificateTestDataDactory.ProvideService();
            var email    = AuthentificateTestDataDactory.UT_USER;
            var password = "******";

            //act
            var user = sut.Autheticate(email, password);

            //assert
            user.Should()
            .BeNull();
        }
        public void Autheticate_Not_Existing_User_Email_Returns_Null()
        {
            //arrange
            var sut      = AuthentificateTestDataDactory.ProvideService();
            var email    = "NOT_EXISTS";
            var password = "******";

            //act
            var user = sut.Autheticate(email, password);

            //assert
            user.Should()
            .BeNull();
        }
        public void Authenticate_Correct_Data_Performs_Less_Than_One_Second()
        {
            //arrange
            var email    = AuthentificateTestDataDactory.UT_USER;
            var password = AuthentificateTestDataDactory.UT_USER;

            var sut = AuthentificateTestDataDactory.ProvideService();

            var stopWatch = new Stopwatch();

            //act
            stopWatch.Start();

            var user = sut.Autheticate(email, password);

            stopWatch.Stop();

            //assert
            user.Should()
            .NotBeNull();

            user.Name
            .Should()
            .Be(AuthentificateTestDataDactory.UT_USER);

            user.Password
            .Should()
            .Be(password);

            user.Email
            .Should()
            .Be(email);

            stopWatch.ElapsedMilliseconds
            .Should()
            .BeLessThan(1000);
        }