Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

rtm.lists.getListの実装

  • Loading branch information...
commit 83e9880ff58851178f34249d4a87fccefaf49bdf 1 parent 4a10c6c
TAKANO Sho / @masaru_b_cl authored
BIN  ReactiveTheMilk.Test/MolesAssemblies/ReactiveProperty.NET40.Moles.dll
Binary file not shown
32 ReactiveTheMilk.Test/MolesAssemblies/ReactiveProperty.NET40.Moles.xml
@@ -283,6 +283,14 @@
283 283 <summary>Sets the mole of <see cref="P:Codeplex.Reactive.Interactivity.EventToReactive.Converter"/>
284 284 </summary>
285 285 </member>
  286 + <member name="P:Codeplex.Reactive.Interactivity.Moles.MEventToReactive.IgnoreEventArgsGet">
  287 + <summary>Sets the mole of <see cref="P:Codeplex.Reactive.Interactivity.EventToReactive.IgnoreEventArgs"/>
  288 + </summary>
  289 + </member>
  290 + <member name="P:Codeplex.Reactive.Interactivity.Moles.MEventToReactive.IgnoreEventArgsSetBoolean">
  291 + <summary>Sets the mole of <see cref="P:Codeplex.Reactive.Interactivity.EventToReactive.IgnoreEventArgs"/>
  292 + </summary>
  293 + </member>
286 294 <member name="P:Codeplex.Reactive.Interactivity.Moles.MEventToReactive.InvokeObject">
287 295 <summary>Sets the mole of <see cref="M:Codeplex.Reactive.Interactivity.EventToReactive.Invoke(System.Object)"/>
288 296 </summary>
@@ -306,6 +314,14 @@
306 314 <summary>Sets the mole of <see cref="P:Codeplex.Reactive.Interactivity.EventToReactive.Converter"/>
307 315 </summary>
308 316 </member>
  317 + <member name="P:Codeplex.Reactive.Interactivity.Moles.MEventToReactive.AllInstances.IgnoreEventArgsGet">
  318 + <summary>Sets the mole of <see cref="P:Codeplex.Reactive.Interactivity.EventToReactive.IgnoreEventArgs"/>
  319 + </summary>
  320 + </member>
  321 + <member name="P:Codeplex.Reactive.Interactivity.Moles.MEventToReactive.AllInstances.IgnoreEventArgsSetBoolean">
  322 + <summary>Sets the mole of <see cref="P:Codeplex.Reactive.Interactivity.EventToReactive.IgnoreEventArgs"/>
  323 + </summary>
  324 + </member>
309 325 <member name="P:Codeplex.Reactive.Interactivity.Moles.MEventToReactive.AllInstances.InvokeObject">
310 326 <summary>Sets the mole of <see cref="M:Codeplex.Reactive.Interactivity.EventToReactive.Invoke(System.Object)"/>
311 327 </summary>
@@ -603,8 +619,8 @@
603 619 <summary>Sets the mole of <see cref="M:Codeplex.Reactive.Extensions.ObservablePairwiseExtensions.Pairwise``2(System.IObservable`1{``0},System.Func`3{``0,``0,``1})"/>
604 620 </summary>
605 621 </member>
606   - <member name="M:Codeplex.Reactive.Extensions.Moles.MObservablePairwiseExtensions._Pairwiseb__0OldNewPairOfTT``1(Microsoft.Moles.Framework.MolesDelegates.Func{Codeplex.Reactive.Extensions.OldNewPair{``0},``0,Codeplex.Reactive.Extensions.OldNewPair{``0}})">
607   - <summary>Sets the mole of <see cref="M:Codeplex.Reactive.Extensions.ObservablePairwiseExtensions.&lt;Pairwise&gt;b__0``1(Codeplex.Reactive.Extensions.OldNewPair`1{``0},``0)"/>
  622 + <member name="M:Codeplex.Reactive.Extensions.Moles.MObservablePairwiseExtensions._Pairwiseb__0TT``1(Microsoft.Moles.Framework.MolesDelegates.Func{``0,``0,Codeplex.Reactive.Extensions.OldNewPair{``0}})">
  623 + <summary>Sets the mole of <see cref="M:Codeplex.Reactive.Extensions.ObservablePairwiseExtensions.&lt;Pairwise&gt;b__0``1(``0,``0)"/>
608 624 </summary>
609 625 </member>
610 626 <member name="P:Codeplex.Reactive.Extensions.Moles.MObservablePairwiseExtensions.Behavior">
@@ -1343,6 +1359,14 @@
1343 1359 <member name="M:Codeplex.Reactive.Moles.MReactiveProperty01.BehaveAsNotImplemented">
1344 1360 <summary>Assigns the &apos;NotImplemented&apos; behavior for all methods of the moled type</summary>
1345 1361 </member>
  1362 + <member name="M:Codeplex.Reactive.Moles.MReactiveProperty01.FromObjectTTargetExpressionOfFuncOfTTargetTPropertyFuncOfTPropertyTResultFuncOfTResultTPropertyISchedulerReactivePropertyMode``3(Microsoft.Moles.Framework.MolesDelegates.Func{``0,System.Linq.Expressions.Expression{System.Func{``0,``1}},System.Func{``1,``2},System.Func{``2,``1},System.Reactive.Concurrency.IScheduler,Codeplex.Reactive.ReactivePropertyMode,Codeplex.Reactive.ReactiveProperty{``2}})">
  1363 + <summary>Sets the mole of <see cref="M:Codeplex.Reactive.ReactiveProperty.FromObject``3(``0,System.Linq.Expressions.Expression`1{System.Func`2{``0,``1}},System.Func`2{``1,``2},System.Func`2{``2,``1},System.Reactive.Concurrency.IScheduler,Codeplex.Reactive.ReactivePropertyMode)"/>
  1364 + </summary>
  1365 + </member>
  1366 + <member name="M:Codeplex.Reactive.Moles.MReactiveProperty01.FromObjectTTargetExpressionOfFuncOfTTargetTPropertyFuncOfTPropertyTResultFuncOfTResultTPropertyReactivePropertyMode``3(Microsoft.Moles.Framework.MolesDelegates.Func{``0,System.Linq.Expressions.Expression{System.Func{``0,``1}},System.Func{``1,``2},System.Func{``2,``1},Codeplex.Reactive.ReactivePropertyMode,Codeplex.Reactive.ReactiveProperty{``2}})">
  1367 + <summary>Sets the mole of <see cref="M:Codeplex.Reactive.ReactiveProperty.FromObject``3(``0,System.Linq.Expressions.Expression`1{System.Func`2{``0,``1}},System.Func`2{``1,``2},System.Func`2{``2,``1},Codeplex.Reactive.ReactivePropertyMode)"/>
  1368 + </summary>
  1369 + </member>
1346 1370 <member name="M:Codeplex.Reactive.Moles.MReactiveProperty01.FromObjectTTargetExpressionOfFuncOfTTargetTPropertyISchedulerReactivePropertyMode``2(Microsoft.Moles.Framework.MolesDelegates.Func{``0,System.Linq.Expressions.Expression{System.Func{``0,``1}},System.Reactive.Concurrency.IScheduler,Codeplex.Reactive.ReactivePropertyMode,Codeplex.Reactive.ReactiveProperty{``1}})">
1347 1371 <summary>Sets the mole of <see cref="M:Codeplex.Reactive.ReactiveProperty.FromObject``2(``0,System.Linq.Expressions.Expression`1{System.Func`2{``0,``1}},System.Reactive.Concurrency.IScheduler,Codeplex.Reactive.ReactivePropertyMode)"/>
1348 1372 </summary>
@@ -1507,10 +1531,6 @@
1507 1531 <summary>Sets the mole of <see cref="M:Codeplex.Reactive.Extensions.RetryObservableExtensions.OnErrorRetry``2(System.IObservable`1{``0},System.Action`1{``1},System.TimeSpan)"/>
1508 1532 </summary>
1509 1533 </member>
1510   - <member name="M:Codeplex.Reactive.Extensions.Moles.MRetryObservableExtensions._OnErrorRetryb__0Exception``1(Microsoft.Moles.Framework.MolesDelegates.Action{System.Exception})">
1511   - <summary>Sets the mole of <see cref="M:Codeplex.Reactive.Extensions.RetryObservableExtensions.&lt;OnErrorRetry&gt;b__0``1(System.Exception)"/>
1512   - </summary>
1513   - </member>
1514 1534 <member name="P:Codeplex.Reactive.Extensions.Moles.MRetryObservableExtensions.Behavior">
1515 1535 <summary>Assigns the behavior for all methods of the moled type</summary>
1516 1536 </member>
BIN  ReactiveTheMilk.Test/MolesAssemblies/ReactiveTheMilk.Moles.dll
Binary file not shown
260 ReactiveTheMilk.Test/MolesAssemblies/ReactiveTheMilk.Moles.xml
@@ -218,6 +218,80 @@
218 218 <summary>Sets the mole of <see cref="M:ReactiveTheMilk.RtmBase.GetRtmResponse(System.String,ReactiveTheMilk.Parameter[])"/>
219 219 </summary>
220 220 </member>
  221 + <member name="T:ReactiveTheMilk.Moles.MRtmClient">
  222 + <summary>Mole type of <see cref="T:ReactiveTheMilk.RtmClient"/>
  223 + .</summary>
  224 + </member>
  225 + <member name="M:ReactiveTheMilk.Moles.MRtmClient.#ctor">
  226 + <summary>Initializes a new mole</summary>
  227 + </member>
  228 + <member name="M:ReactiveTheMilk.Moles.MRtmClient.#ctor(ReactiveTheMilk.RtmClient)">
  229 + <summary>Initializes a new mole for the given instance</summary>
  230 + </member>
  231 + <member name="M:ReactiveTheMilk.Moles.MRtmClient.BehaveAsCurrent">
  232 + <summary>Assigns the &apos;Current&apos; behavior for all methods of the moled type</summary>
  233 + </member>
  234 + <member name="M:ReactiveTheMilk.Moles.MRtmClient.BehaveAsNotImplemented">
  235 + <summary>Assigns the &apos;NotImplemented&apos; behavior for all methods of the moled type</summary>
  236 + </member>
  237 + <member name="P:ReactiveTheMilk.Moles.MRtmClient.Behavior">
  238 + <summary>Assigns the behavior for all methods of the moled type</summary>
  239 + </member>
  240 + <member name="P:ReactiveTheMilk.Moles.MRtmClient.ConstructorStringStringString">
  241 + <summary>Sets the mole of <see cref="M:ReactiveTheMilk.RtmClient.#ctor(System.String,System.String,System.String)"/>
  242 + </summary>
  243 + </member>
  244 + <member name="P:ReactiveTheMilk.Moles.MRtmClient.GetLists">
  245 + <summary>Sets the mole of <see cref="M:ReactiveTheMilk.RtmClient.GetLists"/>
  246 + </summary>
  247 + </member>
  248 + <member name="P:ReactiveTheMilk.Moles.MRtmClient.GetRtmResponseStringParameterArray">
  249 + <summary>Sets the mole of <see cref="M:ReactiveTheMilk.RtmClient.GetRtmResponse(System.String,ReactiveTheMilk.Parameter[])"/>
  250 + </summary>
  251 + </member>
  252 + <member name="P:ReactiveTheMilk.Moles.MRtmClient.TokenGet">
  253 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmClient.Token"/>
  254 + </summary>
  255 + </member>
  256 + <member name="P:ReactiveTheMilk.Moles.MRtmClient.TokenSetString">
  257 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmClient.Token"/>
  258 + </summary>
  259 + </member>
  260 + <member name="P:ReactiveTheMilk.Moles.MRtmClient._GetListsb__5String">
  261 + <summary>Sets the mole of <see cref="M:ReactiveTheMilk.RtmClient.&lt;GetLists&gt;b__5(System.String)"/>
  262 + </summary>
  263 + </member>
  264 + <member name="P:ReactiveTheMilk.Moles.MRtmClient._GetListsb__6XElement">
  265 + <summary>Sets the mole of <see cref="M:ReactiveTheMilk.RtmClient.&lt;GetLists&gt;b__6(System.Xml.Linq.XElement)"/>
  266 + </summary>
  267 + </member>
  268 + <member name="P:ReactiveTheMilk.Moles.MRtmClient._GetListsb__7IEnumerableOfXElement">
  269 + <summary>Sets the mole of <see cref="M:ReactiveTheMilk.RtmClient.&lt;GetLists&gt;b__7(System.Collections.Generic.IEnumerable`1{System.Xml.Linq.XElement})"/>
  270 + </summary>
  271 + </member>
  272 + <member name="P:ReactiveTheMilk.Moles.MRtmClient._GetListsb__8XElement">
  273 + <summary>Sets the mole of <see cref="M:ReactiveTheMilk.RtmClient.&lt;GetLists&gt;b__8(System.Xml.Linq.XElement)"/>
  274 + </summary>
  275 + </member>
  276 + <member name="T:ReactiveTheMilk.Moles.MRtmClient.AllInstances">
  277 + <summary>Define moles for all instances members</summary>
  278 + </member>
  279 + <member name="P:ReactiveTheMilk.Moles.MRtmClient.AllInstances.GetLists">
  280 + <summary>Sets the mole of <see cref="M:ReactiveTheMilk.RtmClient.GetLists"/>
  281 + </summary>
  282 + </member>
  283 + <member name="P:ReactiveTheMilk.Moles.MRtmClient.AllInstances.GetRtmResponseStringParameterArray">
  284 + <summary>Sets the mole of <see cref="M:ReactiveTheMilk.RtmClient.GetRtmResponse(System.String,ReactiveTheMilk.Parameter[])"/>
  285 + </summary>
  286 + </member>
  287 + <member name="P:ReactiveTheMilk.Moles.MRtmClient.AllInstances.TokenGet">
  288 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmClient.Token"/>
  289 + </summary>
  290 + </member>
  291 + <member name="P:ReactiveTheMilk.Moles.MRtmClient.AllInstances.TokenSetString">
  292 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmClient.Token"/>
  293 + </summary>
  294 + </member>
221 295 <member name="T:ReactiveTheMilk.Moles.MRtmException">
222 296 <summary>Mole type of <see cref="T:ReactiveTheMilk.RtmException"/>
223 297 .</summary>
@@ -279,6 +353,160 @@
279 353 <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmException.Msg"/>
280 354 </summary>
281 355 </member>
  356 + <member name="T:ReactiveTheMilk.Moles.MRtmList">
  357 + <summary>Mole type of <see cref="T:ReactiveTheMilk.RtmList"/>
  358 + .</summary>
  359 + </member>
  360 + <member name="M:ReactiveTheMilk.Moles.MRtmList.#ctor">
  361 + <summary>Initializes a new mole</summary>
  362 + </member>
  363 + <member name="M:ReactiveTheMilk.Moles.MRtmList.#ctor(ReactiveTheMilk.RtmList)">
  364 + <summary>Initializes a new mole for the given instance</summary>
  365 + </member>
  366 + <member name="M:ReactiveTheMilk.Moles.MRtmList.BehaveAsCurrent">
  367 + <summary>Assigns the &apos;Current&apos; behavior for all methods of the moled type</summary>
  368 + </member>
  369 + <member name="M:ReactiveTheMilk.Moles.MRtmList.BehaveAsNotImplemented">
  370 + <summary>Assigns the &apos;NotImplemented&apos; behavior for all methods of the moled type</summary>
  371 + </member>
  372 + <member name="P:ReactiveTheMilk.Moles.MRtmList.ArchivedGet">
  373 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Archived"/>
  374 + </summary>
  375 + </member>
  376 + <member name="P:ReactiveTheMilk.Moles.MRtmList.ArchivedSetBoolean">
  377 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Archived"/>
  378 + </summary>
  379 + </member>
  380 + <member name="P:ReactiveTheMilk.Moles.MRtmList.Behavior">
  381 + <summary>Assigns the behavior for all methods of the moled type</summary>
  382 + </member>
  383 + <member name="P:ReactiveTheMilk.Moles.MRtmList.Constructor">
  384 + <summary>Sets the mole of <see cref="M:ReactiveTheMilk.RtmList.#ctor"/>
  385 + </summary>
  386 + </member>
  387 + <member name="P:ReactiveTheMilk.Moles.MRtmList.DeletedGet">
  388 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Deleted"/>
  389 + </summary>
  390 + </member>
  391 + <member name="P:ReactiveTheMilk.Moles.MRtmList.DeletedSetBoolean">
  392 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Deleted"/>
  393 + </summary>
  394 + </member>
  395 + <member name="P:ReactiveTheMilk.Moles.MRtmList.FilterGet">
  396 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Filter"/>
  397 + </summary>
  398 + </member>
  399 + <member name="P:ReactiveTheMilk.Moles.MRtmList.FilterSetString">
  400 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Filter"/>
  401 + </summary>
  402 + </member>
  403 + <member name="P:ReactiveTheMilk.Moles.MRtmList.IdGet">
  404 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Id"/>
  405 + </summary>
  406 + </member>
  407 + <member name="P:ReactiveTheMilk.Moles.MRtmList.IdSetString">
  408 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Id"/>
  409 + </summary>
  410 + </member>
  411 + <member name="P:ReactiveTheMilk.Moles.MRtmList.LockedGet">
  412 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Locked"/>
  413 + </summary>
  414 + </member>
  415 + <member name="P:ReactiveTheMilk.Moles.MRtmList.LockedSetBoolean">
  416 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Locked"/>
  417 + </summary>
  418 + </member>
  419 + <member name="P:ReactiveTheMilk.Moles.MRtmList.NameGet">
  420 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Name"/>
  421 + </summary>
  422 + </member>
  423 + <member name="P:ReactiveTheMilk.Moles.MRtmList.NameSetString">
  424 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Name"/>
  425 + </summary>
  426 + </member>
  427 + <member name="P:ReactiveTheMilk.Moles.MRtmList.PositionGet">
  428 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Position"/>
  429 + </summary>
  430 + </member>
  431 + <member name="P:ReactiveTheMilk.Moles.MRtmList.PositionSetInt32">
  432 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Position"/>
  433 + </summary>
  434 + </member>
  435 + <member name="P:ReactiveTheMilk.Moles.MRtmList.SmartGet">
  436 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Smart"/>
  437 + </summary>
  438 + </member>
  439 + <member name="P:ReactiveTheMilk.Moles.MRtmList.SmartSetBoolean">
  440 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Smart"/>
  441 + </summary>
  442 + </member>
  443 + <member name="T:ReactiveTheMilk.Moles.MRtmList.AllInstances">
  444 + <summary>Define moles for all instances members</summary>
  445 + </member>
  446 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.ArchivedGet">
  447 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Archived"/>
  448 + </summary>
  449 + </member>
  450 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.ArchivedSetBoolean">
  451 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Archived"/>
  452 + </summary>
  453 + </member>
  454 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.DeletedGet">
  455 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Deleted"/>
  456 + </summary>
  457 + </member>
  458 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.DeletedSetBoolean">
  459 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Deleted"/>
  460 + </summary>
  461 + </member>
  462 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.FilterGet">
  463 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Filter"/>
  464 + </summary>
  465 + </member>
  466 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.FilterSetString">
  467 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Filter"/>
  468 + </summary>
  469 + </member>
  470 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.IdGet">
  471 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Id"/>
  472 + </summary>
  473 + </member>
  474 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.IdSetString">
  475 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Id"/>
  476 + </summary>
  477 + </member>
  478 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.LockedGet">
  479 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Locked"/>
  480 + </summary>
  481 + </member>
  482 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.LockedSetBoolean">
  483 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Locked"/>
  484 + </summary>
  485 + </member>
  486 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.NameGet">
  487 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Name"/>
  488 + </summary>
  489 + </member>
  490 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.NameSetString">
  491 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Name"/>
  492 + </summary>
  493 + </member>
  494 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.PositionGet">
  495 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Position"/>
  496 + </summary>
  497 + </member>
  498 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.PositionSetInt32">
  499 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Position"/>
  500 + </summary>
  501 + </member>
  502 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.SmartGet">
  503 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Smart"/>
  504 + </summary>
  505 + </member>
  506 + <member name="P:ReactiveTheMilk.Moles.MRtmList.AllInstances.SmartSetBoolean">
  507 + <summary>Sets the mole of <see cref="P:ReactiveTheMilk.RtmList.Smart"/>
  508 + </summary>
  509 + </member>
282 510 <member name="T:ReactiveTheMilk.Moles.MRtmToken">
283 511 <summary>Mole type of <see cref="T:ReactiveTheMilk.RtmToken"/>
284 512 .</summary>
@@ -503,6 +731,22 @@
503 731 <member name="P:ReactiveTheMilk.Moles.SRtmBase.InstanceBehavior">
504 732 <summary>Gets or sets the instance behavior.</summary>
505 733 </member>
  734 + <member name="T:ReactiveTheMilk.Moles.SRtmClient">
  735 + <summary>Stub type of <see cref="T:ReactiveTheMilk.RtmClient"/>
  736 + .</summary>
  737 + </member>
  738 + <member name="M:ReactiveTheMilk.Moles.SRtmClient.#ctor(System.String,System.String,System.String)">
  739 + <summary>Initializes a new instance</summary>
  740 + </member>
  741 + <member name="M:ReactiveTheMilk.Moles.SRtmClient.InitializeStub">
  742 + <summary>Initializes a new instance of type SRtmClient</summary>
  743 + </member>
  744 + <member name="P:ReactiveTheMilk.Moles.SRtmClient.CallBase">
  745 + <summary>Gets or sets a value that indicates if the base method should be called instead of the fallback behavior</summary>
  746 + </member>
  747 + <member name="P:ReactiveTheMilk.Moles.SRtmClient.InstanceBehavior">
  748 + <summary>Gets or sets the instance behavior.</summary>
  749 + </member>
506 750 <member name="T:ReactiveTheMilk.Moles.SRtmException">
507 751 <summary>Stub type of <see cref="T:ReactiveTheMilk.RtmException"/>
508 752 .</summary>
@@ -519,6 +763,22 @@
519 763 <member name="P:ReactiveTheMilk.Moles.SRtmException.InstanceBehavior">
520 764 <summary>Gets or sets the instance behavior.</summary>
521 765 </member>
  766 + <member name="T:ReactiveTheMilk.Moles.SRtmList">
  767 + <summary>Stub type of <see cref="T:ReactiveTheMilk.RtmList"/>
  768 + .</summary>
  769 + </member>
  770 + <member name="M:ReactiveTheMilk.Moles.SRtmList.#ctor">
  771 + <summary>Initializes a new instance</summary>
  772 + </member>
  773 + <member name="M:ReactiveTheMilk.Moles.SRtmList.InitializeStub">
  774 + <summary>Initializes a new instance of type SRtmList</summary>
  775 + </member>
  776 + <member name="P:ReactiveTheMilk.Moles.SRtmList.CallBase">
  777 + <summary>Gets or sets a value that indicates if the base method should be called instead of the fallback behavior</summary>
  778 + </member>
  779 + <member name="P:ReactiveTheMilk.Moles.SRtmList.InstanceBehavior">
  780 + <summary>Gets or sets the instance behavior.</summary>
  781 + </member>
522 782 <member name="T:ReactiveTheMilk.Moles.SRtmToken">
523 783 <summary>Stub type of <see cref="T:ReactiveTheMilk.RtmToken"/>
524 784 .</summary>
BIN  ReactiveTheMilk.Test/MolesAssemblies/System.Moles.dll
Binary file not shown
1  ReactiveTheMilk.Test/ReactiveTheMilk.Test.csproj
@@ -76,6 +76,7 @@
76 76 <Compile Include="RtmAuthorizerTest.cs" />
77 77 <Compile Include="RtmBaseTest.cs" />
78 78 <Compile Include="RtmUtilsTest.cs" />
  79 + <Compile Include="RtmClientTest.cs" />
79 80 </ItemGroup>
80 81 <ItemGroup>
81 82 <ProjectReference Include="..\ReactiveTheMilk\ReactiveTheMilk.csproj">
109 ReactiveTheMilk.Test/RtmClientTest.cs
... ... @@ -0,0 +1,109 @@
  1 +using System;
  2 +using System.Text;
  3 +using System.Collections.Generic;
  4 +using System.Linq;
  5 +using Microsoft.VisualStudio.TestTools.UnitTesting;
  6 +using System.Reactive.Linq;
  7 +using System.Net;
  8 +using ReactiveTheMilk.Moles;
  9 +using System.Net.Moles;
  10 +using Codeplex.Reactive.Asynchronous.Moles;
  11 +
  12 +namespace ReactiveTheMilk
  13 +{
  14 + [TestClass]
  15 + public class RtmClientTest
  16 + {
  17 + private const string ApiKey = "api_key";
  18 + private const string Secret = "secret";
  19 + private const string Token = "token";
  20 +
  21 + private RtmClient rtm;
  22 +
  23 + [TestInitialize]
  24 + public void SetUp()
  25 + {
  26 + rtm = new SRtmClient(ApiKey, Secret, Token);
  27 + }
  28 +
  29 + [TestMethod]
  30 + [HostType("Moles")]
  31 + public void TestConstructor()
  32 + {
  33 + rtm.Token.Is("token");
  34 + }
  35 +
  36 + [TestMethod]
  37 + [HostType("Moles")]
  38 + public void TestGetResponse()
  39 + {
  40 + var rspRaw = @"<rsp stat=""ok""></rsp>";
  41 + new MRtmBase(rtm).GetRtmResponseString = (method) =>
  42 + {
  43 + Assert.Fail();
  44 + return null;
  45 + };
  46 +
  47 + new MRtmBase(rtm).GetRtmResponseStringParameterArray = (method, parameters) =>
  48 + {
  49 + method.Is("rtm.lists.getList");
  50 + var parameter = parameters.First();
  51 + parameter.Key.Is("auth_token");
  52 + parameter.Value.Is("token");
  53 + return Observable.Return(rspRaw);
  54 + };
  55 +
  56 + var response = rtm.GetRtmResponse("methodName");
  57 + var result = response.First();
  58 + result.Is(rspRaw);
  59 + }
  60 +
  61 + [TestMethod]
  62 + [HostType("Moles")]
  63 + public void TestGetLists()
  64 + {
  65 + var rspRaw = @"<rsp stat=""ok"">
  66 + <lists>
  67 + <list id=""1"" name=""Inbox""
  68 + deleted=""0"" locked=""0"" archived=""0"" position=""-1"" smart=""0"">
  69 + <filter>(priority:1)</filter>
  70 + </list>
  71 + <list id=""2"" name=""Work""
  72 + deleted=""1"" locked=""1"" archived=""1"" position=""1"" smart=""1"">
  73 + <filter>(priority:1)</filter>
  74 + </list>
  75 + </lists>
  76 + </rsp>";
  77 +
  78 + new MRtmClient(rtm).GetRtmResponseStringParameterArray = (method, parameters) =>
  79 + {
  80 + method.Is("rtm.lists.getList");
  81 + return Observable.Return(rspRaw);
  82 + };
  83 +
  84 + IObservable<RtmList> observableList = rtm.GetLists();
  85 + var lists = observableList.ToEnumerable().ToArray();
  86 + {
  87 + var list = lists[0];
  88 + list.Id.Is("1");
  89 + list.Name.Is("Inbox");
  90 + list.Deleted.Is(false);
  91 + list.Locked.Is(false);
  92 + list.Archived.Is(false);
  93 + list.Position.Is(-1);
  94 + list.Smart.Is(false);
  95 + list.Filter.Is("(priority:1)");
  96 + }
  97 + {
  98 + var list = lists[1];
  99 + list.Id.Is("2");
  100 + list.Deleted.Is(true);
  101 + list.Locked.Is(true);
  102 + list.Archived.Is(true);
  103 + list.Position.Is(1);
  104 + list.Smart.Is(true);
  105 + }
  106 + }
  107 +
  108 + }
  109 +}
2  ReactiveTheMilk/Properties/AssemblyInfo.cs
@@ -34,3 +34,5 @@
34 34 // [assembly: AssemblyVersion("1.0.*")]
35 35 [assembly: AssemblyVersion("1.0.0.0")]
36 36 [assembly: AssemblyFileVersion("1.0.0.0")]
  37 +
  38 +[assembly: InternalsVisibleTo("ReactiveTheMilk.Test")]
2  ReactiveTheMilk/ReactiveTheMilk.csproj
@@ -59,7 +59,9 @@
59 59 <Compile Include="Properties\AssemblyInfo.cs" />
60 60 <Compile Include="RtmAuthorizer.cs" />
61 61 <Compile Include="RtmBase.cs" />
  62 + <Compile Include="RtmClient.cs" />
62 63 <Compile Include="RtmException.cs" />
  64 + <Compile Include="RtmList.cs" />
63 65 <Compile Include="RtmToken.cs" />
64 66 <Compile Include="RtmUser.cs" />
65 67 <Compile Include="RtmUtils.cs" />
57 ReactiveTheMilk/RtmClient.cs
... ... @@ -0,0 +1,57 @@
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.Linq;
  4 +using System.Text;
  5 +using System.Reactive.Linq;
  6 +using System.Xml.Linq;
  7 +
  8 +namespace ReactiveTheMilk
  9 +{
  10 + public class RtmClient : RtmBase
  11 + {
  12 + internal string Token { get; private set; }
  13 +
  14 + public RtmClient(string apiKey, string secret, string token)
  15 + : base(apiKey, secret)
  16 + {
  17 + this.Token = token;
  18 + }
  19 +
  20 + /// <summary>
  21 + /// Retrieves a list of lists.
  22 + /// </summary>
  23 + /// <returns></returns>
  24 + public IObservable<RtmList> GetLists()
  25 + {
  26 + return GetRtmResponse("rtm.lists.getList")
  27 + .Select(rspRaw => XElement.Parse(rspRaw))
  28 + .Select(rsp => rsp.Descendants("list"))
  29 + .SelectMany(lists => lists)
  30 + .Select(list => new RtmList
  31 + {
  32 + Id = (string)list.Attribute("id"),
  33 + Name = (string)list.Attribute("name"),
  34 + Deleted = ((string)list.Attribute("deleted") == "1"),
  35 + Locked = ((string)list.Attribute("locked") == "1"),
  36 + Archived = ((string)list.Attribute("archived") == "1"),
  37 + Position = (int)list.Attribute("position"),
  38 + Smart = ((string)list.Attribute("smart") == "1"),
  39 + Filter = list.Element("filter").Value,
  40 + })
  41 + ;
  42 + }
  43 +
  44 + /// <summary>
  45 + /// method、パラメーターを指定してRTM APIレスポンス取得
  46 + /// </summary>
  47 + /// <param name="method">method</param>
  48 + /// <param name="parameters">パラメーター</param>
  49 + /// <returns>RTM APIレスポンスの生XML</returns>
  50 + internal new IObservable<string> GetRtmResponse(string method, params Parameter[] parameters)
  51 + {
  52 + var paramList = parameters.ToList();
  53 + paramList.Add("auth_token", this.Token);
  54 + return base.GetRtmResponse("rtm.lists.getList", paramList.ToArray());
  55 + }
  56 + }
  57 +}
19 ReactiveTheMilk/RtmList.cs
... ... @@ -0,0 +1,19 @@
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.Linq;
  4 +using System.Text;
  5 +
  6 +namespace ReactiveTheMilk
  7 +{
  8 + public class RtmList
  9 + {
  10 + public string Id { get; set; }
  11 + public string Name { get; set; }
  12 + public bool Deleted { get; set; }
  13 + public bool Locked { get; set; }
  14 + public bool Archived { get; set; }
  15 + public int Position { get; set; }
  16 + public bool Smart { get; set; }
  17 + public string Filter { get; set; }
  18 + }
  19 +}

0 comments on commit 83e9880

Please sign in to comment.
Something went wrong with that request. Please try again.