Esempio n. 1
0
        public void CheckSuccessfulChangeEmail()
        {
            var expectedEmail = $"testemail{DateTime.Now:ddyyyymmHHssmmffff}@gmail.com";
            var user          = new Dictionary <string, string>
            {
                { "email", $"testemail{DateTime.Now:ddyyyymmHHssmmffff}@gmail.com" },
                { "first_name", "Vitalik" },
                { "last_name", "Petrenko" },
                { "password", "QWE147asd-" },
                { "phone_number", "3456744567" }
            };

            var crearedUser = AuthReguests.SendRequestClientSingUpPost(user);

            var changedEmail = ClientReguests.SendReguestChangeClientEmailPost("QWE147asd-", expectedEmail, crearedUser.TokenData.Token);

            Assert.AreEqual(expectedEmail, changedEmail);
        }
Esempio n. 2
0
        public void CheckSuccessfulUploadClientImages()
        {
            //var expectedIndustry = $"{DateTime.Now:ddyyyymmHH}";

            var user = new Dictionary <string, string>
            {
                { "email", $"testemail{DateTime.Now:ddyyyymmHHssmmffff}@gmail.com" },
                { "first_name", "Vitalik" },
                { "last_name", "Petrenko" },
                { "password", "QWE147asd-" },
                { "phone_number", "3456744567" }
            };

            var crearedUser = AuthReguests.SendRequestClientSingUpPost(user);

            var changedIndustry = ClientReguests.SendReguestUploadClientImagesPost(crearedUser.TokenData.Token);

            // Assert.AreEqual(expectedIndustry, changedIndustry);
        }
Esempio n. 3
0
        public void CheckSuccessfulChangeClientProfileLocation()
        {
            var expectedLocation = "45415 Dulles Crossing Plaza, Sterling, VA 20166, биР";

            var user = new Dictionary <string, string>
            {
                { "email", $"testemail{DateTime.Now:ddyyyymmHHssmmffff}@gmail.com" },
                { "first_name", "Vitalik" },
                { "last_name", "Petrenko" },
                { "password", "QWE147asd-" },
                { "phone_number", "3456744567" }
            };

            var crearedUser = AuthReguests.SendRequestClientSingUpPost(user);

            var changedLocation = ClientReguests.SendReguestChangeClientCompanyLocationPatch(expectedLocation, crearedUser.TokenData.Token);

            Assert.AreEqual(expectedLocation, changedLocation);
        }