public void CanDeleteMobileSuit() { Mobile_Suit MobileSuit = new Mobile_Suit(); var repo = new MobileSuitRepositoryADO(); MobileSuit.BodyStyleID = 1; MobileSuit.ColorID = 2; MobileSuit.Interior = 2; MobileSuit.Description = "Custom Red Zaku II, Customized for peak performance for commanders of the Zeon army. 3x Faster than the base model with an added shield attatchment. "; MobileSuit.MakeModelID = 2; MobileSuit.MSRP = 120000; MobileSuit.SalePrice = 100000; MobileSuit.SerialNumber = "0123456789"; MobileSuit.TypeID = 2; MobileSuit.WeaponID = 1; MobileSuit.Year = 0079; MobileSuit.CenturyID = 1; MobileSuit.Name = "Zaku II Commander Type"; MobileSuit.Image = "Placeholder.Jpeg"; MobileSuit.UserID = "11111111-1111-1111-1111-111111111111"; MobileSuit.Featured = true; repo.Insert(MobileSuit); var loadMobileSuit = repo.GetById(2); Assert.IsNotNull(loadMobileSuit.Name); repo.Delete(6); loadMobileSuit = repo.GetById(6); Assert.IsNull(loadMobileSuit.Name); }
public void FailLoadMobileSuit() { var repo = new MobileSuitRepositoryADO(); var MobileSuit = repo.GetById(1); Assert.IsNull(MobileSuit); }
public void CanLoadMobileSuit() { var repo = new MobileSuitRepositoryADO(); var MobileSuit = repo.GetById(1); Assert.AreEqual("Zaku II", MobileSuit.Name.ToString()); }