public void Test_UserNames()
 {
     Assert.True(_instance.UserNames().Count == 1);
     Assert.True(_instance.UserNames().Contains("nunit"));
     _instance.AddUser(new User("Test", "", new List <Day>()));
     Assert.True(_instance.UserNames().Count == 2);
     Assert.True(_instance.UserNames().Contains("Test"));
 }
        public void Setup()
        {
            TimeServer.SqlCurrentUser = "******";

            AppSettings.Instance               = new AppSettings();
            AppSettings.Instance.DataPath      = "TimeData.sqlite";
            AppSettings.Instance.MySqlDatabase = "test";
            AppSettings.Instance.MySqlPassword = "******";
            AppSettings.Instance.MySqlPort     = 3306;
            AppSettings.Instance.MySqlServer   = "localhost";
            AppSettings.Instance.MySqlUserId   = "WendallMartin";

            DataBaseManager.Initualize();
            _instance = DataBaseManager.Instance;
            _instance.AddUser(new User("nunit", "", new List <Day>()));
            TimeServer.SqlCurrentUser = "******";
        }