public async void MongoDBCountriesRepository_GetAsync_With_ID_Null_Or_Empty_Expect_Return_Null(String idCountry)
        {
            MongoDBCountriesRepository repo = new MongoDBCountriesRepository(null, null);
            Task <HRCountry>           task = repo.GetAsync(idCountry);
            await task;

            Assert.Null(task.Result);
        }
예제 #2
0
        public async void TestGetAsyncReturnNullWithIDNullOrEmpty()
        {
            MongoDBCountriesRepository repo = new MongoDBCountriesRepository(null);
            Task <HRCountry>           task = repo.GetAsync(null);
            await task;

            Assert.Null(task.Result);
            task = repo.GetAsync(String.Empty);
            await task;

            Assert.Null(task.Result);
        }