Example #1
0
        public BaseTest()
        {
            var options = SqliteInMemory.CreateOptions <NewAlbumsDbContext>();

            DbContext = new NewAlbumsDbContext(options);
            DbContext.Database.EnsureCreated();

            var utData = DbContext.SetupSingleDtoAndEntities <SubscriberDto>();

            utData.AddSingleDto <ArtistDto>();
            utData.AddSingleDto <AlbumDto>();
            utData.AddSingleDto <SubscriptionDto>();

            CrudServicesAsync = new CrudServicesAsync(DbContext, utData.ConfigAndMapper);
        }