public Endereco EnderecoTelefoneVazio() { var endereco = new Faker("pt_BR").Address; var faker = new Faker <Endereco>("pt_BR"); faker.CustomInstantiator(f => new Endereco(Guid.NewGuid(), "14800-000", endereco.StreetAddress(false), string.Empty, endereco.City(), endereco.StateAbbr(), string.Empty, "100A")); return(faker.Generate()); }
public Endereco EnderecoCepTelefoneEstadoInvalido() { var endereco = new Faker("pt_BR").Address; var faker = new Faker <Endereco>("pt_BR"); faker.CustomInstantiator(f => new Endereco(Guid.NewGuid(), "14800-0000", endereco.StreetAddress(false), string.Empty, endereco.City(), endereco.State(), "169958113859", "2005")); return(faker.Generate()); }
//São cenários que podem dar problemas e outros que não dão problemas, Caso de uso public Endereco EnderecoValido()//Verifica se mu metodo é valido { var endereco = new Faker("pt_BR").Address; var faker = new Faker <Endereco>("pt_BR"); faker.CustomInstantiator(f => new Endereco(Guid.NewGuid(), "14800-000", endereco.StreetAddress(false), string.Empty, endereco.City(), endereco.StateAbbr(), "16995811385", "100A")); return(faker.Generate()); }