public void DeleteConfirmedChatsPostRemovesFromRepository()
        {
            var clientRepository  = RepositoryHelper.RepositoryLocalWithOneClient;
            var chatRepository    = new LocalRepository <Contact>();
            var client            = clientRepository.All().First();
            var contactService    = new Mock <IContactService>();
            var restClient        = new Mock <IRestClient>();
            var userManager       = new Mock <IIdentityMembershipProvider>();
            var contactAutoRating = new Mock <IContactAutoRating>();

            var chat = new Contact
            {
                Id       = 1,
                ClientId = client.Id,
                Date     = new DateTime(2013 - 1 - 02)
            };
            var chatProperty = new ContactProperty()
            {
                Id    = 1,
                Type  = "Description",
                Value = "this is the description"
            };

            chat.Property.Add(chatProperty);

            chatRepository.Add(chat);
            var controller = new ChatController(
                chatRepository,
                clientRepository,
                contactService.Object,
                new ServerTime(),
                restClient.Object, userManager.Object, contactAutoRating.Object);

            var result = controller.DeleteConfirmed(chat.Id) as RedirectResult;


            Assert.AreEqual(0, chatRepository.All().Count());
        }