public void DeleteAll_Test()
        {
            var entityList = _repo.Get().Result;

            Assert.NotEmpty(entityList);

            var delete            = _repo.DeleteAll().Result;
            var entityListRecheck = _repo.Get().Result;

            Assert.True(delete);
            Assert.Empty(entityListRecheck);
        }
        public CoinBuyRepositoryTests()
        {
            _repo = new CoinBuyRepository();

            // first clear out the table
            var deleted = _repo.DeleteAll().Result;

            // then add some data for testing
            datas.Add(
                new CoinBuy
            {
                Id         = 0,
                CoinId     = 1,
                CurrencyId = 1,
                Exchange   = Business.Entities.Exchange.Binance,
                Price      = 5418.00M,
                Quantity   = 0.4M,
                ClosedDate = DateTime.UtcNow
            });
            datas.Add(
                new CoinBuy
            {
                Id         = 0,
                CoinId     = 2,
                CurrencyId = 2,
                Exchange   = Business.Entities.Exchange.Binance,
                Price      = 0.0240M,
                Quantity   = 14.2M,
                ClosedDate = DateTime.UtcNow
            });

            var addedEntites = _repo.AddAll(datas).Result;
        }