public void TestEditProfile()
        {
            Buyer buyer = _repo.GetProfile("B001");

            buyer.Mobilenumber = "9010565826";
            _repo.EditProfile(buyer);
            Buyer buyer1 = _repo.GetProfile("B001");

            Assert.AreSame(buyer, buyer1);
        }
Esempio n. 2
0
        public void TestEditProfile()
        {
            Buyer buyer = _repo.GetProfile("1");

            buyer.MobileNo = "8181818181";
            _repo.EditProfile(buyer);
            Buyer buyer1 = _repo.GetProfile("1");

            Assert.AreSame(buyer, buyer1);
        }
Esempio n. 3
0
        public void TestEditProfile()
        {
            Buyer b = rep.GetProfile(2);

            b.Emailid = "*****@*****.**";
            rep.EditProfile(b);
            Buyer b1 = rep.GetProfile(2);

            Assert.AreSame(b, b1);
        }
        public void TestEditProfile()
        {
            Buyer buyer = _repo.GetById("1");

            buyer.Mobile   = "7894561335";
            buyer.Emailid  = "*****@*****.**";
            buyer.Password = "******";
            _repo.EditProfile(buyer);
            Buyer buyer1 = _repo.GetById("12");
            //Assert.AreSame(buyer,buyer1);
        }
        public void TestEditProfile()

        {
            _buyrepo.EditProfile(new Buyer()
            {
                BuyerId         = "4",
                UserName        = "******",
                EmailId         = "navya@1441",
                Password        = "******",
                MobileNo        = "9912897856",
                CreatedDateTime = DateTime.Now
            });

            var result = _buyrepo.GetProfile("4");

            Assert.IsNotNull(result);
        }