Ejemplo n.º 1
0
        public async void All()
        {
            Mock <ILogger <CountryRegionCurrencyRepository> > loggerMoc = CountryRegionCurrencyRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = CountryRegionCurrencyRepositoryMoc.GetContext();
            var repository = new CountryRegionCurrencyRepository(loggerMoc.Object, context);

            CountryRegionCurrency entity = new CountryRegionCurrency();

            context.Set <CountryRegionCurrency>().Add(entity);
            await context.SaveChangesAsync();

            var record = await repository.All();

            record.Should().NotBeEmpty();
        }