Some cleanup and initial RESTful support.
[castle.git] / Facilities / Wcf / Castle.Facilities.WcfIntegration.Tests / Components / Calculator.cs
blob63b9b75172bfb5ed4b4065c440b04562c599099a
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.Facilities.WcfIntegration.Tests
17 public class Calculator : ICalculator
19 public long Add(long x, long y)
21 return x + y;
24 public long Subtract(long x, long y)
26 return x - y;
29 public long Multiply(long x, long y)
31 return x * y;
34 public long Divide(long x, long y)
36 return x / y;