public void When_AllFieldsAreFilledByCorrectData_Expect_SuccessfulUseCreation() { //Assign var request = new CreateWrestlerRequest { Wrestler = new SimpleWrestler { fname = "test", lname = "test", mname = "test", dob = "25-05-1994",//DateTime.Now.ToString("dd-MM-yyyy"), region1 = 3, fst1 = 2, style = 1, lictype = 1, card_state = 1, expires = 2015 } }; var client = new WrestlerClient("auto", "test"); //Act var response = client.CreateWrestler(request); //Assert Assert.IsNotNull(response); Assert.IsTrue(response.id > 0); Assert.IsTrue(response.result); }
public void When_FirstNameFieldIsEmpty_Expect_Error() { //Assign var request = new CreateWrestlerRequest { Wrestler = new SimpleWrestler { fname = "", lname = "test", mname = "test", dob = "25-05-1994",//DateTime.Now.ToString("dd-MM-yyyy"), region1 = 3, fst1 = 2, style = 1, lictype = 1, card_state = 1, expires = 2015 } }; var client = new WrestlerClient("auto", "test"); //Act var result = client.CreateWrestler(request); }