Skip to content

Commit

Permalink
ON-45075 # Merge tests to avoid parrallel conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
kizaonline committed Nov 22, 2024
1 parent 3eafd04 commit 51422b8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions OneBlink.SDK.Tests/FormsAppEnvironmentsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,19 @@ public void throws_error_if_keys_empty()
}

[Fact]
public async void can_search_forms_app_environments()
public async void can_crud_forms_app_environments()
{
FormsAppEnvironmentsClient formsAppEnvironmentsClient = new FormsAppEnvironmentsClient(ACCESS_KEY, SECRET_KEY, TenantName.ONEBLINK_TEST);
FormsAppEnvironmentsSearchResult results = await formsAppEnvironmentsClient.Search(null, null);
Assert.NotNull(results);
Assert.True(results.formsAppEnvironments.Count > 0, "Expected at least 1 environment");
}

[Fact]
public async void can_crud_forms_app_environments()
{
FormsAppEnvironment newFormsAppEnvironment = new FormsAppEnvironment();
newFormsAppEnvironment.name = "Unit test environment";
newFormsAppEnvironment.description = "Created via unit test";
newFormsAppEnvironment.organisationId = organisationId;
newFormsAppEnvironment.slug = "unit-test-environment-" + DateTime.Now.ToFileTimeUtc().ToString();

FormsAppEnvironmentsClient formsAppEnvironmentsClient = new FormsAppEnvironmentsClient(ACCESS_KEY, SECRET_KEY, TenantName.ONEBLINK_TEST);
FormsAppEnvironment savedFormsAppEnvironment = await formsAppEnvironmentsClient.Create(newFormsAppEnvironment);
Assert.NotNull(savedFormsAppEnvironment);

Expand Down

0 comments on commit 51422b8

Please sign in to comment.