Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        public async void GetAll_ShouldGetAll()
        {
            var service = new CrudServiceImpl(_context);
            var tapes   = await service.GetAll();

            Assert.Equal(10, tapes.Count());
        }
Ejemplo n.º 3
0
        public async void Create_ShouldCreate()
        {
            var service = new CrudServiceImpl(_context);

            service.Create(BogusDataGenerators.GetTape());
            var tapes = await service.GetAll();

            Assert.Equal(11, tapes.Count());
        }