Esempio n. 1
0
		public void Constructor_NullRepository_ThrowsArgumentNullException() {
			vm = new CustomerVM(null);
		}
Esempio n. 2
0
		public void CreateNewCustomer_EnteredSampleData_EmptyCustomer() {
			var toCompare = new Customer {FirstName = GenString(), LastName = GenString(), Address = CreateCustomer().Address};
			vm.FirstName = toCompare.FirstName;
			vm.LastName = toCompare.LastName;
			vm.Address.AddressBody = toCompare.Address.AddressBody;
			vm.Address.HouseNumber = toCompare.Address.HouseNumber;
			vm.Address.PhoneNumber = toCompare.Address.PhoneNumber;
			vm.Address.Postcode = toCompare.Address.Postcode;
			vm = (CustomerVM)vm.CreateNewCustomer();

			var emptyVM = new CustomerVM(new FakeDataRepository());

			AssertAreEqual(emptyVM, vm);
		}
Esempio n. 3
0
		public void SetUp() {
			dataRepository = new FakeDataRepository();
			vm = new CustomerVM(dataRepository);
		}