Exemplo n.º 1
0
        public async Task GetAllAsync()
        {
            var handler = new RestaurantDataAccess(this.Context, Mapper());
            var entity  = RestaurantTestData.RestaurantDTO;
            await handler.SaveAsync(entity);

            var response = await handler.GetAllAsync(new RestaurantDTO());

            var outcome = response.Count;

            Assert.IsTrue(outcome == 1);
        }