Exemplo n.º 1
0
        public void ShouldUpdateAppGroupAsync()
        {
            // Arrange
            ISystemApi      systemApi = CreateSystemApi();
            AppGroupRequest appGroup  = CreateAppGroup();

            // Act & Assert
            systemApi.UpdateAppGroupsAsync(new SqlQuery(), appGroup).Wait();
        }
Exemplo n.º 2
0
        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()));
        }