public void GeminiService_Initialization_Test() { // Create new DiagramService IGeminiService geminiservice = new GeminiService(new EventAggregator(), new GeneralDataModel()); // Check the DiagramService object Assert.IsNotNull(geminiservice); Assert.IsInstanceOfType(geminiservice, typeof(GeminiService)); }
public void GeminiService_NewConnection_Test() { Exception testexception = null; IGeminiService geminiservice = new GeminiService(new EventAggregator(), new GeneralDataModel()); IConnectionData testdata = new ConnectionDataModel(); testdata.URL = defaultpath; // Try Default-Connecton with Windows-Authentication try { geminiservice.NewConnection(testdata); } catch (Exception e) { testexception = e; } // Check if an Exeption was thrown by "NewConnection" Assert.IsNull(testexception); }