public void ShouldCatchIfFirstNameIsEmpty()
    {
        var customer = new UpdateCustomerRequest()
        {
            FirstName = "", Surname = "Bobby", EMail = "*****@*****.**", CustomerPassword = "******"
        };
        var validator = new UpdateCustomerValidator();

        var result = validator.Validate(customer);

        Assert.False(result.IsValid);
        Assert.Equal(1, result.Errors.Count());
        Assert.Equal("FirstName", result.Errors.FirstOrDefault().PropertyName);
    }
    public void ShouldCatchIfEMailIsTooLong()
    {
        var customer = new UpdateCustomerRequest()
        {
            FirstName = "Bob", Surname = "something", EMail = "*****@*****.**", CustomerPassword = "******"
        };
        var validator = new UpdateCustomerValidator();

        var result = validator.Validate(customer);

        Assert.False(result.IsValid);
        Assert.Equal(1, result.Errors.Count());
        Assert.Equal("EMail", result.Errors.FirstOrDefault().PropertyName);
    }
    public void ShouldCatchIfEMailIsNotAnEmail()
    {
        var customer = new UpdateCustomerRequest()
        {
            FirstName = "Bob", Surname = "something", EMail = "Random String", CustomerPassword = "******"
        };
        var validator = new UpdateCustomerValidator();

        var result = validator.Validate(customer);

        Assert.False(result.IsValid);
        Assert.Equal(1, result.Errors.Count());
        Assert.Equal("EMail", result.Errors.FirstOrDefault().PropertyName);
    }