Commit Graph

5 Commits

Author SHA1 Message Date
aedampir@gmail.com 4b2f52f89b Extra whitespace have been removed. 2016-03-16 20:16:03 +07:00
aedampir@gmail.com 0fd34d9edc Singleton ApiOptions instance has been removed. 2016-03-16 12:23:38 +07:00
aedampir@gmail.com 9d4f0077b9 ApiOptionsSingleton implementation was changed in order to pass FoxCop analysis. 2016-03-15 17:40:22 +07:00
aedampir@gmail.com b157c452a2 Class ApiOptionsSingleton was implemented in order to support proper unit tests.
Now ApiOptionsSingleton.Instance is used as ApiOptions.None static member instead of creation of new ApiOptions class each time when ApiOptions.None is invoked.

Singleton pattern will allow write proper tests for methods that use ApiOptions.None as their parameter

For instance, now "Arg.Is<ApiOptions>(options => options == ApiOptions.None)" construction can be used.

Also, usage of sigleton has some posititve performance impact.
2016-03-15 17:10:08 +07:00
Brendan Forster 2b9f83b876 add ApiOptions to support tailoring the response details 2016-02-14 16:21:22 +11:00