public void Test_CrustMapping()
        {
            // arrange
            MapperCrust mapperCrust = new MapperCrust();
            var         sut         = new DeepDishCrust();

            // act
            var sut2   = mapperCrust.Map(sut);
            var actual = sut2.CRUST;

            // assert
            Assert.True(actual == CRUSTS.DEEPDISH);
        }
        public void Test_CrustMapping()
        {
            // arrange
            MapperCrust mapperCrust = new MapperCrust();
            var         sut         = new DBCrust();

            sut.CRUST = CRUSTS.DEEPDISH;

            // act
            var sut2   = mapperCrust.Map(sut);
            var actual = sut2;

            // assert
            Assert.True(actual.CRUST != CRUSTS.THIN);
        }
예제 #3
0
 public void Add(Crust genericType)
 {
     context.DBCrusts.Add(mapperCrust.Map(genericType));
     context.SaveChanges();
 }