Пример #1
0
        public void GivenNotCorrectEmailOfCustomer_WhenCreatingCustomer_ThenCustomerInputExceptionIsTrown()
        {
            //Given
            CustomerBuilder customerbuilder = new CustomerBuilder();

            //When
            Action act = () => customerbuilder.WithEmailAdress("xxx");

            //Then
            Assert.Throws <CustomerInputException>(act);
        }