Example #1
0
		public void Ctor_withValidArguments_works()
		{
			// arrange:
			UnLocode code = new UnLocode("UNLOC");
			string name = "Test Location";
		
			// act:
			ILocation location = new Challenge00.DDDSample.Location.Location(code, name);
		
			// assert:
			Assert.AreEqual(code, location.UnLocode);
			Assert.AreEqual(name, location.Name);
		}
Example #2
0
        public void Ctor_withValidArguments_works()
        {
            // arrange:
            UnLocode code = new UnLocode("UNLOC");
            string   name = "Test Location";

            // act:
            ILocation location = new Challenge00.DDDSample.Location.Location(code, name);

            // assert:
            Assert.AreEqual(code, location.UnLocode);
            Assert.AreEqual(name, location.Name);
        }