public async Task TestGetAllStores() { var returnSet = new[] { new Store { Bouqets = new List <Bouqet>(200), Id = 1, Name = "test store 1", Address = "Straat 1", Region = "Antwerpen" }, new Store { Bouqets = new List <Bouqet>(200), Id = 1, Name = "test store 2", Address = "Straat 2", Region = "Temse" }, new Store { Bouqets = new List <Bouqet>(200), Id = 1, Name = "test store 3", Address = "Straat 3", Region = "Lennik" }, }; // Arrange _storeRepoMock.Setup(x => x.GetAllStores()).Returns(Task.FromResult((IEnumerable <Store>)returnSet)).Verifiable(); // Act var storeResponse = await _storesController.GetAllStores(); // Assert storeResponse.Should().BeOfType <OkObjectResult>(); // verify via a snapshot (https://swisslife-oss.github.io/snapshooter/) // used a lot in jest (for JS) Snapshot.Match(storeResponse); }