public void NewAccount_WithValidParams_ShouldSetProperties() { var account = new Account("test", "user", "password"); Assert.That(account.Username,Is.EqualTo("user")); Assert.That(account.Password,Is.EqualTo("password")); Assert.That(account.Subdomain,Is.EqualTo("test")); }
public void NewAccount_WithSubdomain_ShouldReturnFormattedUrl() { var account = new Account("test", "user", "password"); Assert.That(account.LitmusBaseUrl,Is.EqualTo("https://test.litmus.com/")); }
public void NewAccount_WithEmptySubdomain_ShouldThrow() { var account = new Account(null, "user", "password"); }
public void NewAccount_WithEmptyUser_ShouldThrow() { var account = new Account("test", null, "password"); }
public void NewAccount_WithEmptyPassowrd_ShouldThrow() { var account = new Account("test", "user", null); }