コード例 #1
0
        public async Task GetUserSectorsAsync_CallsService()
        {
            // act
            await userSectorsService.GetUserSectorsAsync();

            // assert
            await userSectorsService.Received(1).GetUserSectorsAsync();
        }
コード例 #2
0
        public void GetUserSectorsAsync_CallsService()
        {
            // act
            userSectorsService.GetUserSectors();

            // assert
            userSectorsService.Received(1).GetUserSectors();
        }