-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Moved table paramters back to PrtgAPI.Paramters namespace -Renamed BaseSensorParameters to NewSensorParameters
- Loading branch information
Showing
111 changed files
with
944 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
PrtgAPI.Tests.UnitTests/ObjectTests/CSharp/AutoDiscoverTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Threading.Tasks; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using PrtgAPI.Tests.UnitTests.ObjectTests.TestResponses; | ||
|
||
namespace PrtgAPI.Tests.UnitTests.ObjectTests.CSharp | ||
{ | ||
[TestClass] | ||
public class AutoDiscoverTests : BaseTest | ||
{ | ||
[TestMethod] | ||
public void AutoDiscover_CanExecute() | ||
{ | ||
var client = Initialize_Client(new BasicResponse(string.Empty)); | ||
|
||
client.AutoDiscover(1001); | ||
} | ||
|
||
[TestMethod] | ||
public async Task AutoDiscover_CanExecuteAsync() | ||
{ | ||
var client = Initialize_Client(new BasicResponse(string.Empty)); | ||
|
||
await client.AutoDiscoverAsync(1001); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Threading.Tasks; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using PrtgAPI.Tests.UnitTests.ObjectTests.TestResponses; | ||
|
||
namespace PrtgAPI.Tests.UnitTests.ObjectTests.CSharp | ||
{ | ||
[TestClass] | ||
public class DeleteTests : BaseTest | ||
{ | ||
[TestMethod] | ||
public void Delete_CanExecute() | ||
{ | ||
var client = Initialize_Client(new BasicResponse(string.Empty)); | ||
|
||
client.DeleteObject(1001); | ||
} | ||
|
||
[TestMethod] | ||
public async Task Delete_CanExecuteAsync() | ||
{ | ||
var client = Initialize_Client(new BasicResponse(string.Empty)); | ||
|
||
await client.DeleteObjectAsync(1001); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
PrtgAPI.Tests.UnitTests/ObjectTests/CSharp/RefreshTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Threading.Tasks; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using PrtgAPI.Tests.UnitTests.ObjectTests.TestResponses; | ||
|
||
namespace PrtgAPI.Tests.UnitTests.ObjectTests.CSharp | ||
{ | ||
[TestClass] | ||
public class RefreshTests : BaseTest | ||
{ | ||
[TestMethod] | ||
public void Refresh_CanExecute() | ||
{ | ||
var client = Initialize_Client(new BasicResponse(string.Empty)); | ||
|
||
client.RefreshObject(1001); | ||
} | ||
|
||
[TestMethod] | ||
public async Task Refresh_CanExecuteAsync() | ||
{ | ||
var client = Initialize_Client(new BasicResponse(string.Empty)); | ||
|
||
await client.RefreshObjectAsync(1001); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Threading.Tasks; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using PrtgAPI.Tests.UnitTests.ObjectTests.TestResponses; | ||
|
||
namespace PrtgAPI.Tests.UnitTests.ObjectTests.CSharp | ||
{ | ||
[TestClass] | ||
public class RenameTests : BaseTest | ||
{ | ||
[TestMethod] | ||
public void Rename_CanExecute() | ||
{ | ||
var client = Initialize_Client(new BasicResponse(string.Empty)); | ||
|
||
client.RenameObject(1001, "new name"); | ||
} | ||
|
||
[TestMethod] | ||
public async Task Rename_CanExecuteAsync() | ||
{ | ||
var client = Initialize_Client(new BasicResponse(string.Empty)); | ||
|
||
await client.RenameObjectAsync(1001, "new name"); | ||
} | ||
} | ||
} |
Oops, something went wrong.