public void Should_retrun_null_when_getscenariobyuserid_called_and_userid_not_exists(string userId) { // Arrange IScenarioService scenarioService = new ScenarioService(_mockDataSettings.Object, _mockScenarioRepository.Object); // Act var scenario = scenarioService.GetScenarioByUserId(userId) ; // Assert scenario.Should().BeNull(); }
public void Should_fetch_scenario_when_getscenariobyuserid_called_and_userid_exists(string userId, string expectedResult) { // Arrange IScenarioService scenarioService = new ScenarioService(_mockDataSettings.Object, _mockScenarioRepository.Object); // Act var scenario = scenarioService.GetScenarioByUserId(userId) ; // Assert scenario.UserID.Should().Be(expectedResult); scenario.Should().NotBeNull(); }