示例#1
0
		public static Transfer FromRaw(RawTransfer rawTransfer)
		{
			return new Transfer
			{
				Raw = rawTransfer
			};
		}
		public void Transfer_Equals_TrueWhenTitleIsNullOrWhiteSpace()
		{
			var transfer = new RawTransfer { Title = " " };
			var transfer2 = new RawTransfer { Title = null };

			AreEqual(transfer, transfer2);
		}
		private static void AreDifferent(RawTransfer transfer, RawTransfer transfer2)
		{
			transfer.Equals(transfer2).Should().BeFalse();
		}
		private static void AreEqual(RawTransfer transfer, RawTransfer transfer2)
		{
			transfer.Equals(transfer2).Should().BeTrue();
			transfer.GetHashCode().Should().Be(transfer2.GetHashCode(),
				"When to objects are equal they should have same HashId");
		}