Пример #1
0
		protected override void SharedContext()
		{
			_heroCard = new HeroCard("H1")
			{
				Name = "My Hero"
			};

			_cache = CreateDependency<IHearthstoneCardCache>();
			_cache.Setup(s => s.Query(It.IsAny<FindHeroCardQuery>())).Returns(_heroCard);

			AutoMapperProfiles.RegisterProfiles(_cache.Object);
		}
Пример #2
0
		protected override void Context()
		{
			_card = new HeroCard("M1")
			{
				PlayerClass = "Priest",
				Name = "Anduin",
				Faction = FactionTypeOptions.Neutral,
				Rarity = RarityTypeOptions.Legendary,
				Attack = 0,
				Cost = 0,
				Health = 30
			};
		}