aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ApartmentManager/HousingWebApi-fix/Areas/HelpPage/SampleGeneration/TextSample.cs')
-rw-r--r--ApartmentManager/HousingWebApi-fix/Areas/HelpPage/SampleGeneration/TextSample.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/SampleGeneration/TextSample.cs b/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/SampleGeneration/TextSample.cs
new file mode 100644
index 0000000..26c0e99
--- /dev/null
+++ b/ApartmentManager/HousingWebApi-fix/Areas/HelpPage/SampleGeneration/TextSample.cs
@@ -0,0 +1,37 @@
+using System;
+
+namespace HousingWebApi.Areas.HelpPage
+{
+ /// <summary>
+ /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class.
+ /// </summary>
+ public class TextSample
+ {
+ public TextSample(string text)
+ {
+ if (text == null)
+ {
+ throw new ArgumentNullException("text");
+ }
+ Text = text;
+ }
+
+ public string Text { get; private set; }
+
+ public override bool Equals(object obj)
+ {
+ TextSample other = obj as TextSample;
+ return other != null && Text == other.Text;
+ }
+
+ public override int GetHashCode()
+ {
+ return Text.GetHashCode();
+ }
+
+ public override string ToString()
+ {
+ return Text;
+ }
+ }
+} \ No newline at end of file