コード例 #1
0
        public void ServiceLayer_CleanUpTitles()
        {
            int      listenerId = 333;
            Listener l2         = new Listener()
            {
                Title = "Miss.", Forename = "Clean", Surname = "Dates", Addr1 = "40 Clean Road", Addr2 = "", County = "London", Postcode = "N7 8AB", Town = "Camden", Telephone = "07843434343", Stock = 3, Info = "", Joined = DateTime.Now, MemStickPlayer = false, Magazine = true, Status = ListenerStates.ACTIVE, StatusInfo = "", Wallet = listenerId, Birthday = DateTime.Parse("01/01/1000"), DeletedDate = DateTime.Parse("01/01/1000"), LastIn = DateTime.Parse("01/01/1000"), LastOut = DateTime.Parse("01/01/1000")
            };

            repoLayer.InsertListener(serviceLayer.GetConnection(), l2);

            serviceLayer.CleanUpTitles();

            Listener result = serviceLayer.GetListenerById(333);

            Assert.AreEqual("Miss", result.Title);
        }