public void DomainDateMapper_Store_GetOneItem() { var dbItem = DBTest.DBItems()[0]; var appItem = DomainDataMapper.GetStorePackById(dbItem); Assert.Equal(dbItem.PackId, appItem.PackId); Assert.Equal(dbItem.PackQty, appItem.PackQty); }
public void DomainDateMapper_Card_GetOneCard() { var dbCard = DBTest.DBCards()[0]; var appCard = DomainDataMapper.GetOneCard(dbCard); Assert.Equal(dbCard.CardId, appCard.CardId); Assert.Equal(dbCard.Name, appCard.Name); Assert.Equal(dbCard.Type, appCard.Type); }
public void DomainDateMapper_User_GetOneUser() { var dbUser = DBTest.DBUsers()[0]; var appUser = DomainDataMapper.GetOneUser(dbUser); Assert.Equal(dbUser.UserId, appUser.UserId); Assert.Equal(dbUser.First, appUser.First); Assert.Equal(dbUser.Last, appUser.Last); Assert.Equal(dbUser.Email, appUser.Email); Assert.Equal(dbUser.UserRole, appUser.UserRole); Assert.Equal(dbUser.NumPacksPurchased, appUser.NumPacksPurchased); Assert.Equal(dbUser.CurrencyAmount, appUser.CurrencyAmount); }