public void ServiceLayer_CleanDeletedDate() { Listener l5 = new Listener() { Title = "Miss", Forename = "Other", Surname = "Jones", Addr1 = "40 Camden Road", Addr2 = "", County = "London", Postcode = "N7 8AB", Town = "Camden", Telephone = "07843434343", Stock = 3, Info = "", Joined = DateTime.Now, MemStickPlayer = true, Magazine = true, Status = ListenerStates.ACTIVE, StatusInfo = "", LastOut = DateTime.Now.AddMonths(-4), Wallet = 5, DeletedDate = DateTime.Now.AddDays(-5) }; serviceLayer.AddListener(l5); serviceLayer.CleanDeletedDates(); Listener result = serviceLayer.GetListenerById(l5.Wallet); Assert.IsNull(result.DeletedDate); }