コード例 #1
0
ファイル: WorkspaceTests.cs プロジェクト: apinheiro/AsanaApi
 public void GetProjectsOfWorkspace()
 {
     WorkspacesService service = new WorkspacesService( API_KEY );
     Project[] projects = service.GetProjects( TEST_WORKSPACE_ID );
     Assert.IsNotNull( projects, "we should have gotten some projects back" );
     foreach( var item in projects )
     {
         Assert.IsNotNull( item.Name, "name should always come back" );
         Assert.AreEqual( DateTime.MinValue, item.CreatedAt, "CreatedAt isn't populated by default" );
         Assert.IsFalse( item.ModifiedAt.HasValue, "modified date is null" );
         Assert.IsNull( item.Followers, "shouldn't be any followers" );
     }
 }