Ejemplo n.º 1
0
        private void And_entered_details_are_associated_to_returned_customer_ID()
        {
            var details = _database.GetById(_customerId);

            Assert.That(details, Is.Not.Null);
            Assert.That(details.Name, Is.EqualTo(_customer.Name));
            Assert.That(details.Surname, Is.EqualTo(_customer.Surname));
            Assert.That(details.Address, Is.EqualTo(_customer.Address));
        }
Ejemplo n.º 2
0
        public void Should_add_customer()
        {
            var details = new CustomerDetails()
                          .SetName("Smith", "John")
                          .SetAddress("High St. 27, AB1 2CD, London");

            var id = _subject.Add(details);

            Assert.That(id, Is.Not.Null);
            Assert.That(_subject.GetById(id), Is.SameAs(details));
        }