public void Bank_CanAddCustomerTest() { ICustomer _customer = _Bank.AddCustomer("224-81-7701", "Joe Customer"); Assert.AreEqual("224-81-7701", _customer.SocialSecurityNumber); // Duplicate customer _Bank.AddCustomer(_customer); }
public CustomerDTO Create([FromBody] string name) { var credential = Credential.CreateNewCredential(name); _bank.AddCustomer(credential); var customer = _bank.Login(credential); return(new CustomerDTO(customer)); }