public async Task AddOrderAsyncAdds() { var options = new DbContextOptionsBuilder <Project2JAGVContext>() .UseInMemoryDatabase("AddOrderAsyncAdds") .Options; Order order = new Order { Id = 1, UserId = 1, DelivererId = 1, Delivered = false, Date = DateTime.Now, }; using var actContext = new Project2JAGVContext(options); var repo = new DataAccess.DataAccess(actContext, new MapperStub()); await repo.AddOrderAsync(order); await repo.SaveAsync(); using var arrangeContext = new Project2JAGVContext(options); var result = arrangeContext.Orders; Assert.NotNull(result); }