public void LoginViewModel_Test_Returns_No_Errors()
        {
            //Arrange
            Backend.Models.ViewModels.LoginViewModel LoginViewModel = new Backend.Models.ViewModels.LoginViewModel()
            {
                Email    = "*****@*****.**",
                Password = "******"
            };

            //Act
            List <ValidationResult> lstErrors = ValidateModel(LoginViewModel);

            //Assert
            Assert.True(lstErrors.Count == 0);
        }
        public void LoginViewModel_Test_Returns_Password_Is_Required()
        {
            //Arrange
            Backend.Models.ViewModels.LoginViewModel LoginViewModel = new Backend.Models.ViewModels.LoginViewModel()
            {
                Email = "*****@*****.**"
            };

            //Act
            List <ValidationResult> lstErrors = ValidateModel(LoginViewModel);
            string result = lstErrors[0].ToString();

            //Assert
            Assert.True(lstErrors.Count == 1);
            Assert.Equal("Password is required", result);
        }
        public void LoginViewModel_Test_Returns_Email_Is_Required()
        {
            //Arrange
            Backend.Models.ViewModels.LoginViewModel LoginViewModel = new Backend.Models.ViewModels.LoginViewModel()
            {
                Password = "******"
            };

            //Act
            List <ValidationResult> lstErrors = ValidateModel(LoginViewModel);
            string result = lstErrors[0].ToString();

            //Assert
            Assert.True(lstErrors.Count == 1);
            Assert.Equal("Email is required", result);
        }