public void ItemModelHelper_GetItemModelNameFromGuid_Null_Should_ReturnNull()
        {
            // act
            var result = ItemModelHelper.GetItemModelNameFromGuid(null);

            // assert
            Assert.IsNull(result);
        }
 /// <summary>
 /// Loading Item values to the labels
 /// </summary>
 /// <param name="data"></param>
 public void LoadValues(GenericViewModel <CharacterModel> data)
 {
     HeadItem.Text        = ItemModelHelper.GetItemModelNameFromGuid(data.Data.Head);
     NecklaceItem.Text    = ItemModelHelper.GetItemModelNameFromGuid(data.Data.Necklace);
     PrimaryHandItem.Text = ItemModelHelper.GetItemModelNameFromGuid(data.Data.PrimaryHand);
     OffHandItem.Text     = ItemModelHelper.GetItemModelNameFromGuid(data.Data.OffHand);
     RightFingerItem.Text = ItemModelHelper.GetItemModelNameFromGuid(data.Data.RightFinger);
     LeftFingerItem.Text  = ItemModelHelper.GetItemModelNameFromGuid(data.Data.LeftFinger);
     FeetItem.Text        = ItemModelHelper.GetItemModelNameFromGuid(data.Data.Feet);
 }
        public async Task ItemModelHelper_GetItemModelNameFromGuid_ValidId_Should_Pass()
        {
            // Arrange
            var ViewModel = ItemIndexViewModel.Instance;
            var dataTest  = new ItemModel {
                Name = "test"
            };
            await ViewModel.CreateAsync(dataTest);

            // act
            var result = ItemModelHelper.GetItemModelNameFromGuid(dataTest.Id);

            // assert
            Assert.AreEqual(dataTest.Name, result);
        }
        public async Task ItemModelHelper_GetItemModelNameFromGuid_IdDoesNotExist_Should_ReturnNull()
        {
            // Arrange
            var ViewModel = ItemIndexViewModel.Instance;
            var dataTest  = new ItemModel {
                Name = "test"
            };
            await ViewModel.CreateAsync(dataTest);

            // act
            var result = ItemModelHelper.GetItemModelNameFromGuid("abcd");

            // assert
            Assert.IsNull(result);
        }