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

            var entity = new CountryRegionCurrency();
            await repository.Create(entity);

            var record = await context.Set <CountryRegionCurrency>().FirstOrDefaultAsync();

            record.Should().NotBeNull();
        }