public async Task EventsOperationsWork() { await context.CreateUser(auth); var first = await events.List(); await events.Add(1); var second = await events.List(); await events.Remove(1); await events.Remove(2); var third = await events.List(); Assert.Empty(first); Assert.Equal(new List <int> { 1 }, second); Assert.Empty(third); }
public Task Remove([FromRoute] int id) { return(favoriteEventsService.Remove(id)); }