public void SetIdTestModelWithNoId() { var model = new MockNoIdModel() { Id = 3 }; var jsonApiId = new JsonApiId <MockNoIdModel>(model); }
public void SetIdTestModelWithToManyIds() { var model = new MockToManyIdModel() { Id = 3, IdTwo = 4 }; var jsonApiId = new JsonApiId <MockToManyIdModel>(model); }
public void SetIdTestWithWrongValueType() { var model = new MockModel { StringValue = "StringValue", MockId = 3424, IntValue = 52 }; var jsonApiId = new JsonApiId <MockModel>(model); jsonApiId.Set("sesdfsd"); }
public void GetIdTest() { var model = new MockModel { StringValue = "StringValue", MockId = 3424, IntValue = 52 }; var jsonApiId = new JsonApiId <MockModel>(model); Assert.AreEqual(3424, jsonApiId.Get()); }