public void TestGetDatabaseUser() { string dbName = "TestDB"; var dataService = new AuthorizationDataService(); string username = dataService.GetDatabaseUser(dbName); Assert.IsNotNull(username); Assert.IsNotEmpty(username); }
public void TestCreateDatabase() { var dataService = new AuthorizationDataService(); dataService.CreateDatabase( "Initial Catalog=Master;Data Source=.;Integrated Security=SSPI"); string dbConnection = dataService.GetCurrentConnection(); Assert.IsNotEmpty(dbConnection); }