public void Setup() { var options = new DbContextOptionsBuilder <PaymentsDb>() .UseInMemoryDatabase(databaseName: "Payments") .Options; _context = new PaymentsDb(options); _mapper = MapperUtils.GetMapper(new Profile[] { new DomainToInfra(), new InfraToDomain() }); }
public void Setup() { _bankHttpClientMock = new Mock <IBankHttpClient>(); _mapper = MapperUtils.GetMapper(new Profile[] { new DomainToInfra() }); }