Exemplo n.º 1
0
 private Importer GetValidImporter(bool addedToAddressBook)
 {
     return(new Importer(Guid.NewGuid())
     {
         Address = AddressTestData.GetValidTestAddress(countryId),
         Contact = ContactTestData.GetValidTestContact(),
         BusinessName = "Test importer",
         IsAddedToAddressBook = addedToAddressBook
     });
 }
Exemplo n.º 2
0
        private FacilityCollection GetValidFacilities(bool addedToAddressBook)
        {
            FacilityCollection result = new FacilityCollection();

            result.Facilities = new System.Collections.Generic.List <Facility>()
            {
                new Facility(Guid.NewGuid())
                {
                    Address              = AddressTestData.GetValidTestAddress(countryId),
                    Contact              = ContactTestData.GetValidTestContact(),
                    BusinessName         = "Test facility",
                    IsAddedToAddressBook = addedToAddressBook
                }
            };

            return(result);
        }