public void ShouldGetResourceType()
        {
            MockedDatabase <ResourceType> database;
            ResourceTypeModule            module;
            ResourceType result;

            database = new MockedDatabase <ResourceType>(false, 1, (t) => new ResourceType()
            {
                ResourceTypeID = (ResourceTypeIDs)t
            });
            module = new ResourceTypeModule(NullLogger.Instance, database);
            result = module.GetResourceType(ResourceTypeIDs.Wood);
            Assert.IsNotNull(result);
            Assert.AreEqual(ResourceTypeIDs.Wood, result.ResourceTypeID);
        }
        public void ShouldNotGetResourceTypeAndLogError()
        {
            MockedDatabase <ResourceType> database;
            ResourceTypeModule            module;
            MemoryLogger logger;


            logger   = new MemoryLogger();
            database = new MockedDatabase <ResourceType>(true, 1, (t) => new ResourceType()
            {
                ResourceTypeID = (ResourceTypeIDs)t
            });
            module = new ResourceTypeModule(logger, database);
            Assert.ThrowsException <PIODataException>(() => module.GetResourceType(ResourceTypeIDs.Wood));
            Assert.IsNotNull(logger.Logs.FirstOrDefault(item => (item.Level == LogLevels.Error) && (item.ComponentName == module.ModuleName)));
        }