예제 #1
0
        public void WearableToSpecialistDtoShouldFail()
        {
            var wearableInstance      = new WearableInstance();
            var specialistInstanceDto = _mapper.Map <SpecialistInstanceDto>(wearableInstance);

            Assert.IsNull(specialistInstanceDto);
        }
예제 #2
0
        public void WearableInstanceToItemInstanceDto()
        {
            var wearableInstanceGo = new WearableInstance(new Item());
            var itemInstancedto    = _mapper.Map <ItemInstanceDto>(wearableInstanceGo);

            Assert.IsNotNull(itemInstancedto);
        }
예제 #3
0
        public void WearableInstanceToItemInstanceEntity()
        {
            var wearableInstanceGo = new WearableInstance(new Item());
            var itemInstanceEntity = _mapper.Map <ItemInstance>(wearableInstanceGo);

            Assert.IsNotNull(itemInstanceEntity);
        }
예제 #4
0
        public void WearableInstanceToItemInstanceGo()
        {
            var wearableInstanceGo = new WearableInstance(new Item());
            var itemInstanceGo     =
                _mapper.Map <GameObject.Providers.ItemProvider.Item.ItemInstance>(wearableInstanceGo);

            Assert.IsNotNull(itemInstanceGo);
        }