コード例 #1
0
        public void Get_custom_prompts_should_contain_a_custom_prompt()
        {
            // When
            var result = centreCustomPromptsDataService.GetCustomPromptsAlphabetical().ToList();

            // Then
            result.Contains((1, "Department / team")).Should().BeTrue();
        }
コード例 #2
0
        public void GetCustomPromptsAlphabeticalList_calls_data_service()
        {
            // Given
            const string promptName = "Department / team";

            A.CallTo(() => centreCustomPromptsDataService.GetCustomPromptsAlphabetical()).Returns
                (new List <(int, string)> {
                (1, promptName)
            });
コード例 #3
0
 public List <(int id, string value)> GetCustomPromptsAlphabeticalList()
 {
     return(centreCustomPromptsDataService.GetCustomPromptsAlphabetical().ToList());
 }