Exemplo n.º 1
0
        public static PostalAddressBuilder WithDefaults(this PostalAddressBuilder @this)
        {
            var faker = @this.Session.Faker();

            @this.WithAddress1(faker.Address.StreetAddress());
            @this.WithAddress2(faker.Address.SecondaryAddress());
            @this.WithAddress3(faker.Address.BuildingNumber());
            @this.WithPostalCode(faker.Address.ZipCode());
            @this.WithLocality(faker.Address.City());
            @this.WithCountry(new Countries(@this.Session).FindBy(M.Country.IsoCode, faker.Address.CountryCode()));
            @this.WithLatitude(faker.Address.Latitude());
            @this.WithLongitude(faker.Address.Longitude());

            return(@this);
        }