public async Task AddIngredientTypeAsyncAdds() { var options = new DbContextOptionsBuilder <Project2JAGVContext>() .UseInMemoryDatabase("AddIngredientTypeAsyncAdds") .Options; IngredientType ingredientType = new IngredientType { Id = 1, Name = "name", }; using var actContext = new Project2JAGVContext(options); var repo = new DataAccess.DataAccess(actContext, new MapperStub()); await repo.AddIngredientTypeAsync(ingredientType); await repo.SaveAsync(); using var arrangeContext = new Project2JAGVContext(options); var result = arrangeContext.IngredientTypes; Assert.NotNull(result); }