예제 #1
0
        public Models.Production.DestinationFacility New()
        {
            var customer = new Models.Production.Customer
            {
                CustomerId    = new Random().Next(1, 999999).ToString(),
                Name          = "BD Rowa Germany GmbH DestinationFacility",
                ContactPerson = new Models.Production.ContactPerson
                {
                    Email           = "*****@*****.**",
                    Name            = "Johanna Blisterfrau",
                    TelephoneNumber = "0269292060"
                },
                ContactAddress = new Models.Production.ContactAddress
                {
                    Addressline1 = "Rowastraße 1-3",
                    NameLine1    = "BD Rowa Germany GmbH",
                    City         = "Kelberg",
                    Country      = "Germany",
                    Postalcode   = "53539",
                    State        = "Rheinland-Pfalz"
                }
            };
            var departmentItem      = DepartmentGenerator.Random();
            var destinationFacility = new Models.Production.DestinationFacility
            {
                DepartmentCode = departmentItem.Code,
                DepartmentName = departmentItem.Name,
                Name           = customer.Name,
                ContactAddress = customer.ContactAddress,
                ContactPerson  = customer.ContactPerson,
                CustomerId     = customer.CustomerId
            };

            return(destinationFacility);
        }
예제 #2
0
        public static void Main(string[] args)
        {
            IList <Department> departments = new DepartmentGenerator().GenerateDepartments(20);

            DepartmentRepository departmentRepository = new DepartmentRepository();

            departmentRepository.AddDepartments(departments);
        }