public async void Create_ShouldCreate() { var service = new CrudServiceImpl(_context); service.Create(BogusDataGenerators.GetTape()); var tapes = await service.GetAll(); Assert.Equal(11, tapes.Count()); }
public async void Update_ShouldUpdate() { var service = new CrudServiceImpl(_context); service.Create(BogusDataGenerators.GetTape()); var tape = await service.GetSingle(1); tape.Title = "Updated title"; service.Update(tape); tape = await service.GetSingle(1); Assert.Equal("Updated title", tape.Title); }