BotUser registriert und eingeloggt
Methoden zum Bot User registrieren und einloggen hinzugefügt aber auskommentiert, weil dies nur zu Debug bzw. Test gründen benutzt wurde
This commit is contained in:
@@ -134,6 +134,6 @@
|
||||
</Button>
|
||||
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Window>
|
||||
|
@@ -3,6 +3,7 @@ using System.Windows.Media;
|
||||
using System.Windows;
|
||||
using bib_talk.Business;
|
||||
using System.Windows.Controls;
|
||||
using System.Threading;
|
||||
|
||||
namespace bib_talk
|
||||
{
|
||||
@@ -88,5 +89,19 @@ namespace bib_talk
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void LoginBotUser(object sender, RoutedEventArgs e)
|
||||
{
|
||||
// for (int i = 1; i <= 100; i++)
|
||||
// {
|
||||
// string name = "Bot";
|
||||
// string password = "Bot123";
|
||||
// loginManager.LoginBots(name + i, password);
|
||||
// Thread.Sleep(1000);
|
||||
//}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
@@ -159,6 +160,19 @@ namespace bib_talk
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Benutzt um 100 User accounts zu erstellen
|
||||
//private void RegisterNewBots(object sender, RoutedEventArgs e)
|
||||
//{
|
||||
// for (int i = 10; i <= 100; i++)
|
||||
// {
|
||||
// string name = "Bot";
|
||||
// string password = "Bot123";
|
||||
// string email = "bot@edu.bib.de";
|
||||
// string birthday = "12.12.2000";
|
||||
// registerManager.RegisterBots(name + i, password, i + email, birthday);
|
||||
// Thread.Sleep(1000);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user