public async void ComponentTest_View() { var mock = new Mock <IFileManager>(); var componentService = new ComponentController(mock.Object); var result = await componentService.Get(); mock.Verify(c => c.GetAllFile()); Assert.NotEmpty(GetTestComponent()); }