public void All_WithData_ReturnsSameData()
        {
            var options = new DbContextOptionsBuilder <GameInfoContext>()
                          .UseInMemoryDatabase(databaseName: "Db_WithItems")
                          .Options;

            using (var context = new GameInfoContext(options))
            {
                var service = new ItemsService(context);

                var items = new List <Item>
                {
                    new Item()
                    {
                        Name = "1", AcquiredFrom = "1", Usage = "1"
                    },
                    new Item()
                    {
                        Name = "2", AcquiredFrom = "2", Usage = "2"
                    },
                    new Item()
                    {
                        Name = "3", AcquiredFrom = "3", Usage = "3"
                    }
                };

                context.Items.AddRange(items);
                context.SaveChanges();

                Assert.Equal(3, service.All().Count);
            }
        }
        public void All_WithNoData_ReturnsNoData()
        {
            var options = new DbContextOptionsBuilder <GameInfoContext>()
                          .UseInMemoryDatabase(databaseName: "NoItems_Db")
                          .Options;

            using (var context = new GameInfoContext(options))
            {
                var service = new ItemsService(context);
                Assert.Equal(0, service.All().Count);
            }
        }