Пример #1
0
        public void AddPersonTest()
        {
            PersonDto personDto = new PersonDto();

            personDto.HeadNationalIdentity = "12451";
            //personDto.Id = Guid.NewGuid();
            // personDto.CustomerId = 10;
            personDto.Firstname        = "ali1";
            personDto.FatherName       = "ahmad1";
            personDto.Lastname         = "rezai1";
            personDto.ShobehCode       = 11;
            personDto.HomeAddress      = "babol1";
            personDto.HomeTelno        = "145789+";
            personDto.NationalIdentity = "56457611";
            PersonAccountService pa = new PersonAccountService();
            string str = pa.AddPerson(personDto);
        }
Пример #2
0
        public void AddPersonTest1(Guid id)
        {
            PersonDto personDto = new PersonDto();

            personDto.HeadNationalIdentity = "1245";
            personDto.Id               = id;
            personDto.CustomerId       = 10;
            personDto.Firstname        = "ali";
            personDto.FatherName       = "ahmad";
            personDto.Lastname         = "rezai";
            personDto.ShobehCode       = 1;
            personDto.HomeAddress      = "babol";
            personDto.HomeTelno        = "145789+";
            personDto.NationalIdentity = "198598";
            PersonAccountService pa = new PersonAccountService();
            string str = pa.AddPerson(personDto);
        }
Пример #3
0
        public int AddPersonTest2()
        {
            PersonAccountService pa        = new PersonAccountService();
            PersonDto            personDto = new PersonDto
            {
                BirthDate            = 13910102,
                CretyId              = "1",
                CretySerial          = "2",
                FatherName           = "ahmad",
                Firstname            = "ali",
                HomeAddress          = "babol",
                NationalIdentity     = "1",
                HomeTelno            = "1245",
                HeadNationalIdentity = "2"
            };

            pa.AddPerson(personDto);
            return(100);
        }