Exemplo n.º 1
0
        public async Task <bool> Testfor_FindNotice()
        {
            //Arrange
            var res = false;

            //Action
            service.Setup(repos => repos.FindNotice(_notice.Name));
            var result = await _SchoolServices.FindNotice(_notice.Name);

            //Assertion
            if (result != null)
            {
                res = true;
            }
            //Assert
            //final result displaying in text file
            await File.AppendAllTextAsync("../../../../output_revised.txt", "Testfor_FindNotice=" + res + "\n");

            return(res);
        }