public void GetTransformerReturns_WithATransformer()
        {
            using (var context = getDBContext())
            {
                Models.DB.Transformer autoBotTransformer = new Models.DB.Transformer()
                {
                    Name             = "Autobot",
                    AllegianceTypeId = (int)AllegianceTypes.Autobot,
                    Courage          = 1,
                    Endurance        = 1,
                    Firepower        = 1,
                    Intelligence     = 1,
                    Rank             = 1,
                    Skill            = 1,
                    Speed            = 1,
                    Strength         = 1
                };


                context.Transformers.Add(autoBotTransformer);
                context.SaveChanges();

                var warsService   = new WarService(context, _mockLogger.Object);
                var autoBotResult = warsService.GetTransformer(autoBotTransformer.TransformerId).Result;
                Assert.Equal(autoBotTransformer.Name, autoBotResult.Name);
                context.Database.EnsureDeleted();
            }
        }
 public void GetTransformerReturns_Error_WhenNotFound()
 {
     using (var context = getDBContext())
     {
         var warsService = new WarService(context, _mockLogger.Object);
         Assert.ThrowsAsync <TransformerWarsException>(() => warsService.GetTransformer(123));
         context.Database.EnsureDeleted();
     }
 }