Beispiel #1
0
    public void Delete([ValueSource(typeof(MibBrowserDataSource), MibBrowserDataSource.ALL_BROWSER)] BrowserName browser,
                       [Values(MibUserType.Administrators,
                               MibUserType.OBAdministrator)] MibUserType userType)
    {
        var apiObject = GetOrCreateThroughAPI();

        _editPage = ChannelMaps1EditPage.InitAndGoToItem <ChannelMaps1EditPage>(ListPage, apiObject.ApiObject.Id);

        DeleteAndAssert(_editPage);

        RemoveObjectToBeDelete(apiObject.ApiObject);
    }
Beispiel #2
0
    public void Edit([ValueSource(typeof(MibBrowserDataSource), MibBrowserDataSource.ALL_BROWSER)] BrowserName browser,
                     [Values(MibUserType.Administrators,
                             MibUserType.OBAdministrator)] MibUserType userType)
    {
        var apiObject   = GetOrCreateThroughAPI();
        var editedModel = new ChannelMaps1Factory().InitEdited();

        _editPage = ChannelMaps1EditPage.InitAndGoToItem <ChannelMaps1EditPage>(ListPage, apiObject.ApiObject.Id);

        Edit(editedModel);
        _editPage.Save();
        AssertFields(editedModel);
    }