示例#1
0
    public void DeleteNotificationConfig_ShouldDeleteConfig()
    {
        string configId = _fixture.RandomId();

        CreateNotificationConfigSnippets.CreateNotificationConfig(_fixture.OrganizationId, configId, _fixture.ProjectId, _fixture.Topic);

        Assert.True(DeleteNotificationConfigSnippets.DeleteNotificationConfig(_fixture.OrganizationId, configId));
    }
示例#2
0
    public void CreateNotificationConfig_ShouldCreateConfig()
    {
        string configId = _fixture.RandomId();

        Assert.NotNull(CreateNotificationConfigSnippets.CreateNotificationConfig(_fixture.OrganizationId, configId, _fixture.ProjectId, _fixture.Topic));

        _fixture.MarkForDeletion(configId);
    }
 public string CreateNotificationConfig(string configId)
 {
     CreateNotificationConfigSnippets.CreateNotificationConfig(OrganizationId, configId, ProjectId, Topic);
     _cleanupItems.Add(configId);
     return(configId);
 }