protected override void Arrange() { base.Arrange(); A.CallTo(() => EdFiLegacyDatabaseRepository.FindAllVersionLevels(A <string> ._)) .Returns( new[] { new DatabaseVersionLevel { DatabaseType = "EDFI", ScriptSource = "Ed-Fi-ODS", VersionLevel = 1010, ScriptType = "Structure", SubType = "Changes" } }); var scriptPathInfo = A.Fake <IScriptPathInfo>(); A.CallTo(() => ScriptPathInfoProvider.FindAllScriptsInFileSystem(Options)) .Returns(new[] { scriptPathInfo }.ToList()); var scriptFileVersionLevelList = new[] { new ScriptFileVersionLevel(OdsStructureChangesPath, FileName1010) }; A.CallTo(() => scriptPathInfo.GetAllScriptFiles()) .Returns(scriptFileVersionLevelList); }
public void Then_script_path_info_provider_should_not_have_been_called() => A.CallTo(() => ScriptPathInfoProvider.FindAllScriptsInFileSystem(Options)).MustNotHaveHappened();