Example #1
0
        // Private helper method that sets up a new library DTO
        private LibraryDto SetupLibraryDto()
        {
            var address = new Address()
            {
                LocationAddressLine1  = RandomFactory.GetStreetAddress(),
                LocationAddressLine2  = "",
                LocationCity          = RandomFactory.GetCity(),
                LocationStateProvince = RandomFactory.GetState(),
                LocationZipCode       = RandomFactory.GetZip(),
                LocationCountry       = "US"
            };

            return(new LibraryDto()
            {
                Name = RandomFactory.GetLibraryName(),
                Address = address
            });
        }