public void All_Beer_Properties_Should_Have_A_Value(DaBeerStorageTable table) { table.DrankWhen = DateTimeOffset.Now.ToString(); var beer = table.MapToBeer(); VerifyMappings(beer); }
public void ShouldMapFields_WhenMapBeerFromTable(DaBeerStorageTable table) { var beer = table.MapToBeer(); beer.Description.ShouldBe(table.BeerDescription); beer.Drank.ShouldBe(table.Drank); beer.Ibu.ShouldBe(table.Ibu); beer.Location.ShouldBe(table.LocationName); beer.Name.ShouldBe(table.BeerName); beer.Rating.ShouldBe(table.Rating); beer.Style.ShouldBe(table.Style); beer.BeerId.ShouldBe(table.BeerId); beer.BreweryName.ShouldBe(table.BreweryName); beer.BreweryState.ShouldBe(table.BreweryState); beer.DateAdded.ShouldBe(table.DateAdded); beer.DrankWhen.ShouldBe(table.DrankWhen); beer.LabelPath.ShouldBe(table.LabelPath); beer.Location.ShouldBe(table.LocationName); beer.UntappedId.ShouldBe(table.UntappedId); beer.AlchoholByVolume.ShouldBe(table.AlchoholByVolume); beer.BrewerDbId.ShouldBe(table.BrewerDbId); }