Пример #1
0
        public void RegisterModelCommandTest()
        {
            var registerCommand = new RegisterModelCommand
            {
                PersonalInformationArg = new PersonalInformationArg
                {
                    UserName    = "******",
                    FirstName   = "Berhane",
                    FatherName  = "Birhanu",
                    DateOfBirth = DateTime.Parse("1992-01-06T21:00:00.000Z"),
                    Sex         = "F",
                    Email       = "*****@*****.**",
                    //GeoId = "792cbf1e-af13-4e13-b844-2e0597a96219",
                    OfferTypeId = "PREMIMUM_USER"
                },

                PhysicalInformationArg = new PhysicalInformationArg
                {
                    Height       = 1.70,
                    HeightEnumId = "METER",
                    Weight       = 65,
                    WeightEnumId = "KG",
                    Complexion   = "*****@*****.**"
                },
                ContactInfoArgs = new List <ContactInfoArg>()
                {
                    new ContactInfoArg
                    {
                        ContactMechTypeId = "WEBSITE",
                        ContactUrl        = "http://www.smitspatriciagarity.com"
                    },
                    new ContactInfoArg
                    {
                        ContactMechTypeId = "INSTAGRAM",
                        ContactUrl        = "@lula"
                    }
                },
                CategoryTypeIds = new List <string> {
                    "MODELING", "VIDEO_COMMERCIALS", "PRINT_COMMERCIALS"
                }
            };
            var result = _service.InvokeCommand(registerCommand);
        }
 public CommandResult AuthenticateUserCommand(RegisterModelCommand registerModelCommand)
 {
     return(InvokeCommand(registerModelCommand));
 }