public void GetKeysTest() { Portal.Controllers.CardController c = new Controllers.CardController(); var keys = c.GetKeys(); Assert.IsFalse(string.IsNullOrEmpty(keys.PrivateKey)); Assert.IsFalse(string.IsNullOrEmpty(keys.PublicKey)); Assert.IsFalse(string.IsNullOrEmpty(keys.Password)); }
public void ActivateTest() { Portal.Controllers.CardController c = new Controllers.CardController(); //inject value c.UserIdentity = "2025"; var card = c.CreateCard("2025"); c.Activate(card); c.DeleteCard(card); }
public void ActivateTest() { Portal.Controllers.CardController c = new Controllers.CardController(); //inject value c.UserIdentity = "lucascullen"; Card mockCard = new Card() { CardId = "d0921f1e" }; c.Activate(mockCard); }