public void RegisterPluginWithWrongParameters_ShouldReturnMachindeId() { // Arrange var dialogServiceMock = new Mock <IDialogService>(); var api = new ChewsiApi(dialogServiceMock.Object); var request = new RegisterPluginRequest("123456789", "Test", "", Settings.PMS.Types.Dentrix, "6.2"); // Act var response = api.RegisterPlugin(request); // Assert Guid guid; Assert.IsTrue(Guid.TryParse(response, out guid), "Machine Id should be GUID"); }
public void RegisterPlugin_ShouldReturnMachindeId() { // Arrange var dialogServiceMock = new Mock <IDialogService>(); var api = new ChewsiApi(dialogServiceMock.Object); var request = new RegisterPluginRequest("002480857", "1368 BEACON ST NO 105", "", Settings.PMS.Types.Dentrix, "6.2"); // Act var response = api.RegisterPlugin(request); // Assert Guid guid; Assert.IsTrue(Guid.TryParse(response, out guid), "Machine Id should be GUID"); }