public void CreateObjTestTheGoodRetrunValueType() { var test = new JobModelMapper(); QarnotSDK.QJob job = new QarnotSDK.QJob(FakeSDKConnection.GetFakeConnection(), "name"); var returnSetting = test.CreateObj(job); Assert.IsTrue(returnSetting is CommandValues.JobCommandValue); }
public void CreateObjVerifyTheValuesSet() { var test = new JobModelMapper(); QarnotSDK.QJob job = new QarnotSDK.QJob(FakeSDKConnection.GetFakeConnection(), "name"); var returnSetting = test.CreateObj(job) as CommandValues.JobCommandValue; Assert.AreEqual(returnSetting.Name, job.Name); Assert.AreEqual(returnSetting.Shortname, job.Shortname); Assert.AreEqual(returnSetting.Uuid, job.Uuid.ToString()); Assert.AreEqual(returnSetting.State, job.State); }