Exemplo n.º 1
0
        public async Task <IEnumerable <Covid19> > GetDataByDateFromDBAsync(string date)
        {
            //get data
            var result = await _iCoronaComponent.GetDataFromMongoDbByDateAsync(date);

            return(result);
        }
        public async Task TestGetDataFilterByDateFromMongoDBAsync()
        {
            var date = "26/04/2020";

            var result = await _ICovidLogic.GetDataFromMongoDbByDateAsync(date);

            Assert.NotEqual(0, result.Count);
        }