public void GetClassId_HasId_IdIsReturned() { //Assign InstanceContextFixtureNS.TestClass testClass = new Glass.Sitecore.Mapper.Tests.InstanceContextFixtureNS.TestClass(); testClass.Id = _itemId; //Act var result = _service.InstanceContext.GetClassId(typeof(InstanceContextFixtureNS.TestClass), testClass); //Assert Assert.AreEqual(_itemId, result); }
public void GetClassId_HasId_IdIsReturned() { //Assign InstanceContextFixtureNS.TestClass testClass = new Glass.Sitecore.Mapper.Tests.InstanceContextFixtureNS.TestClass(); testClass.Id = _itemId; //Act var result = _service.InstanceContext.GetClassId(typeof(InstanceContextFixtureNS.TestClass), testClass); //Assert Assert.AreEqual(_itemId, result); }