diff options
| author | mo.khan <mo.khan@a0a4a051-f042-0410-9e78-9fae330bdb64> | 2008-01-05 07:16:52 +0000 |
|---|---|---|
| committer | mo.khan <mo.khan@a0a4a051-f042-0410-9e78-9fae330bdb64> | 2008-01-05 07:16:52 +0000 |
| commit | 8c137f229c36a777ead5cacb3350cb8692646292 (patch) | |
| tree | 92876c5da0ffd17767e38f94a44415ac27a3c73e /DesignPatterns/src/app/DesignPatterns.Factory/Interfaces | |
| parent | cbdf42a6427eef7849d1ab7731f9185b410431d3 (diff) | |
git-svn-id: http://mokhan.googlecode.com/svn/trunk@9 a0a4a051-f042-0410-9e78-9fae330bdb64
Diffstat (limited to 'DesignPatterns/src/app/DesignPatterns.Factory/Interfaces')
5 files changed, 40 insertions, 0 deletions
diff --git a/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/IBank.cs b/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/IBank.cs new file mode 100644 index 0000000..52f1e67 --- /dev/null +++ b/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/IBank.cs @@ -0,0 +1,6 @@ +namespace DesignPatterns.Factory {
+ public interface IBank {
+ string Name { get; }
+ IBankAccountFactory GetAccountFactory( );
+ }
+}
\ No newline at end of file diff --git a/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/IBankAccount.cs b/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/IBankAccount.cs new file mode 100644 index 0000000..f759e8d --- /dev/null +++ b/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/IBankAccount.cs @@ -0,0 +1,8 @@ +using DesignPatterns.Factory;
+
+namespace DesignPatterns.Test {
+ public interface IBankAccount {
+ IMoney Balance { get; set; }
+ string AccountNumber{ get;}
+ }
+}
\ No newline at end of file diff --git a/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/IBankAccountFactory.cs b/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/IBankAccountFactory.cs new file mode 100644 index 0000000..5099fd8 --- /dev/null +++ b/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/IBankAccountFactory.cs @@ -0,0 +1,8 @@ +using DesignPatterns.Test;
+
+namespace DesignPatterns.Factory {
+ public interface IBankAccountFactory {
+ IBankAccount CreateChequingAccount( );
+ IBankAccount CreateSavingsAccount( );
+ }
+}
\ No newline at end of file diff --git a/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/ICurrency.cs b/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/ICurrency.cs new file mode 100644 index 0000000..8f1afd4 --- /dev/null +++ b/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/ICurrency.cs @@ -0,0 +1,5 @@ +namespace DesignPatterns.Factory {
+ public interface ICurrency {
+ string Name { get; }
+ }
+}
\ No newline at end of file diff --git a/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/IMoney.cs b/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/IMoney.cs new file mode 100644 index 0000000..c5392ae --- /dev/null +++ b/DesignPatterns/src/app/DesignPatterns.Factory/Interfaces/IMoney.cs @@ -0,0 +1,13 @@ +using DesignPatterns.Factory;
+
+namespace DesignPatterns.Factory {
+ public interface IMoney {
+ double Amount { get; }
+
+ ICurrency TypeOfCurrency { get; }
+
+ IMoney Add( IMoney other );
+
+ IMoney Subtract( IMoney money );
+ }
+}
\ No newline at end of file |
