public async void Remove_ShouldRemove() { var service = new CrudServiceImpl(_context); var tapes = await service.GetAll(); Assert.Equal(10, tapes.Count()); service.Delete(await service.GetSingle(1)); tapes = await service.GetAll(); Assert.Equal(9, tapes.Count()); }
public async void GetAll_ShouldGetAll() { var service = new CrudServiceImpl(_context); var tapes = await service.GetAll(); Assert.Equal(10, tapes.Count()); }
public async void Create_ShouldCreate() { var service = new CrudServiceImpl(_context); service.Create(BogusDataGenerators.GetTape()); var tapes = await service.GetAll(); Assert.Equal(11, tapes.Count()); }