public void WhenIGetASpecificApplicationId_ThenIGetTheCorrectIndex() { _indexRepository.Create(_index1); _indexRepository.Create(_index2); IndexDefinition newIndex = _indexRepository.GetIndexByApplicationId(_index1.ApplicationId); newIndex.Should().NotBeNull(); newIndex.ApplicationId.Should().Be(_index1.ApplicationId); newIndex.Id.Should().NotBe(_index2.Id); }