public DeleteCollectionAsync ( string collection ) : System.Threading.Tasks.Task | ||
collection | string | Name of collection to delete. |
return | System.Threading.Tasks.Task |
public async Task Async_DeleteCollection_Success() { var client = new KeenClient(settingsEnv); if (UseMocks) client.EventCollection = new EventCollectionMock(settingsEnv, DeleteCollection: new Action<string, IProjectSettings>((c, p) => { if ((p == settingsEnv) && (c == "DeleteColTest")) return; else throw new Exception("Unexpected value"); })); await client.DeleteCollectionAsync("DeleteColTest"); }