public void ShouldUpdateAppGroupAsync() { // Arrange ISystemApi systemApi = CreateSystemApi(); AppGroupRequest appGroup = CreateAppGroup(); // Act & Assert systemApi.UpdateAppGroupsAsync(new SqlQuery(), appGroup).Wait(); }
public void ShouldCreateAppGroupAsync() { // Arrange ISystemApi systemApi = CreateSystemApi(); AppGroupRequest appGroup = CreateAppGroup(); appGroup.Id = null; // Act AppGroupResponse created = systemApi.CreateAppGroupsAsync(new SqlQuery(), appGroup).Result.First(); // Assert created.Id.ShouldBe(1); Should.Throw <ArgumentException>(() => systemApi.CreateAppGroupsAsync(new SqlQuery())); }