Пример #1
0
            public ActivateRejectedShould()
            {
                var dateTimeCreatorMock = new Mock <IDateTimeCreator>();
                var mobileOrder         = new Order(new OrderDataEntity {
                    GlobalId = Guid.NewGuid(), Name = "Name", ContactPhoneNumber = "0123456789", State = "Sent"
                });

                sut = new Mobile(dateTimeCreatorMock.Object,
                                 new MobileDataEntity
                {
                    Id       = 101,
                    GlobalId = Guid.NewGuid(),
                    State    = Mobile.MobileState.ProcessingActivate.ToString(),
                    Orders   = new List <OrderDataEntity>()
                    {
                        mobileOrder.GetDataEntity()
                    }
                });

                sut.ActivateRejected();
            }