Beispiel #1
0
        public async Task CreateTestContributor()
        {
            var now = DateTime.Now.ToShortDateString() + "_" + DateTime.Now.ToShortTimeString();

            now = now.Replace(':', '-');
            var user = await UserSync.Create("test-user_03.02.2018_13-11", "*****@*****.**", "123456");

            Assert.IsTrue(user.Success);
            Assert.IsNotNull(user.Id);
            Assert.IsNotNull(user.EMail);
            Assert.IsNotNull(user.Username);
        }
Beispiel #2
0
        public async Task CreateUser()
        {
            var now = DateTime.Now.ToShortDateString() + "_" + DateTime.Now.ToShortTimeString();

            now = now.Replace(':', '-');
            var user = UserSync.Create("test-user_" + now, "test-user_" + now + "@testmail.testmail", "123456").Result;

            Assert.IsTrue(user.Success);
            Assert.IsNotNull(user.Id);
            Assert.IsNotNull(user.EMail);
            Assert.IsNotNull(user.Username);
            File.WriteAllLines("TestUser\\test-user_" + now + ".txt", new string[] { user.Id.ToString(), user.EMail, user.Username });
        }