public void Load()
 {
     NFixture.Of <Company>().AddTemplate(VALID_COMPANY_TEMPLATE_NAME)
     .ForMember(e => e.Name, PROPERTY_VALUE)
     .ForMember(e => e.Address, Rule.One <Address>(AddressTemplate.VALID_ADDRESS_TEMPLATE))
     .ForMember(e => e.CNPJ, Rule.Cnpj());
 }
Beispiel #2
0
 public void Load()
 {
     NFixture.Of <Client>().AddTemplate(VALID_TEMPLATE_NAME)
     .ForMember(e => e.Name, PROPERTY_VALUE)
     .ForMember(e => e.Address, Rule.One <Address>(AddressTemplate.VALID_ADDRESS_TEMPLATE))
     .ForMember(e => e.Phones, Rule.Has <Phone>(QUANTITY_OF_PHONES).Of(PhoneTemplate.Valid_Template))
     .ForMember(e => e.CPF, Rule.Cpf());
 }
Beispiel #3
0
 public void Load()
 {
     NFixture.Of <Address>().AddTemplate(VALID_ADDRESS_TEMPLATE)
     .ForMember(e => e.Street, STREET)
     .ForMember(e => e.City, CITY)
     .ForMember(e => e.State, STATE)
     .ForMember(e => e.Country, COUNTRY)
     .ForMember(e => e.ZipCode, ZIPCODE);
 }
Beispiel #4
0
 public void Load()
 {
     NFixture.Of <Phone>().AddTemplate(Valid_Template)
     .ForMember(e => e.Number, 55555555M);
 }