public void AddManagerShouldAdd() { //arrange var options = new DbContextOptionsBuilder <SoilMatesContext>().UseInMemoryDatabase("AddManagerShouldAdd").Options; using var testContext = new SoilMatesContext(options); repo = new DBrepo(testContext); //act repo.AddManager(testManager); //assert using var assertContext = new SoilMatesContext(options); Assert.NotNull(assertContext.Managers.SingleAsync(n => n.Name == testManager.Name)); }