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; }
public CoinBuyBuilder(ICoinBuyRepository repo, IExchangeHubBuilder hubBldr) { this._cbRepo = repo; this._hubBldr = hubBldr; }