public async Task MustCheckPasswordValid(string password, bool result) { var model = new UserValidation(); var user = new MF.Domain.Entities.User.User("Dio", "Zen", "diozen", password, 0, ContactUser(), AddressUser(), true); var userValid = model.Validate(user).IsValid; userValid.Should().Be(result); }
public async Task MustCheckLastNameValid(string lastName, bool result) { var model = new UserValidation(); var user = new MF.Domain.Entities.User.User("dio", lastName, "diozen", "1211551ads", 0, ContactUser(), AddressUser(), true); var userValid = model.Validate(user).IsValid; userValid.Should().Be(result); }
public async Task MustCheckLoginValid(string login, bool result) { var model = new UserValidation(); var user = new MF.Domain.Entities.User.User("dio", "zen", login, "1234dfs", 0, ContactUser(), AddressUser(), true); var userValid = model.Validate(user).IsValid; userValid.Should().Be(result); }
public async Task MustCheckFistNameValid(string firstName, bool result) { var model = new UserValidation(); var user = new MF.Domain.Entities.User.User(firstName, "zen", "diozen", "15651dsa5", 0, ContactUser(), AddressUser(), true); var userValid = model.Validate(user).IsValid; userValid.Should().Be(result); }