コード例 #1
0
        public void Status()
        {
            var p = new PhoneOrderEntity();
            const PhoneOrderEntity.ApprovalStatus initialValue = PhoneOrderEntity.ApprovalStatus.Open;

            p.Status = initialValue;

            Assert.AreEqual(initialValue, p.Status);
        }
コード例 #2
0
        public void SetOrderStatus()
        {
            PhoneOrderEntity orderInstance;
            var factory = new PhoneOrderEntityFactory();
            const PhoneOrderEntity.ApprovalStatus status = PhoneOrderEntity.ApprovalStatus.Open;

            factory.SetStatus(status);
            orderInstance = factory.GetInstance();

            Assert.AreEqual(status, orderInstance.Status);
        }
コード例 #3
0
 public void SetStatus(PhoneOrderEntity.ApprovalStatus status)
 {
     phoneOrderEntity.Status = status;
 }