public void GetShould_ReturnNull_WhenIncorrectId_IsGiven()
        {
            User sampleUser = new User("OMGAuser", "qwertyyy", Roles.User);
            Venue sampleVenue = new Venue("SampleName", "SampleAdress", "SampleDescription", sampleUser);
            Venue sampleVenue2 = new Venue("SampleName3", "SampleAdress", "SampleDescription", sampleUser);

            this.testRepository.Add(sampleVenue);
            this.testRepository.Add(sampleVenue2);

            Assert.IsNull(this.testRepository.Get(3));
        }
        public void GetShould_Return_A_Proper_Item_WhenThe_Id_IsPresent()
        {
            User sampleUser = new User("OMGAuser", "qwertyyy", Roles.User);
            Venue sampleVenue = new Venue("SampleName", "SampleAdress", "SampleDescription", sampleUser);
            Venue sampleVenue2 = new Venue("SampleName2", "SampleAdress", "SampleDescription", sampleUser);
            Venue sampleVenue3 = new Venue("SampleName3", "SampleAdress", "SampleDescription", sampleUser);
            Venue sampleVenue4 = new Venue("SampleName4", "SampleAdress", "SampleDescription", sampleUser);
            var actual = "SampleName3";

            this.testRepository.Add(sampleVenue);
            this.testRepository.Add(sampleVenue2);
            this.testRepository.Add(sampleVenue3);
            this.testRepository.Add(sampleVenue4);
            var expected = this.testRepository.Get(3).Name;


            Assert.AreEqual(actual, expected);
        }
        public void All_ShouldReturnVenues_OrderedInWay_Of_TheirAddition()
        {
            var venue = new Venue("SampleVenue", "SampleAddress", "NotThatInteresting", this.sampleUser);
            var secondVenue = new Venue("SampleVenueTwo", "SampleAddressTwo", "NotTatInterestnig", this.sampleUser);
            var sampleStringBuilder = new StringBuilder();

            this.sampleController.Add("SampleVenue", "SampleAddress", "NotThatInteresting");
            this.sampleController.Add("SampleVenueTwo", "SampleAddressTwo", "NotTatInterestnig");
            sampleStringBuilder.AppendFormat("*[1] {0}, located at {1}", venue.Name, venue.Address)
                .AppendLine()
                .AppendFormat("Free rooms: {0}", venue.Rooms.Count)
                .AppendLine();
            sampleStringBuilder.AppendFormat("*[2] {0}, located at {1}", secondVenue.Name, secondVenue.Address)
                .AppendLine()
                .AppendFormat("Free rooms: {0}", secondVenue.Rooms.Count);

            var expected = sampleStringBuilder.ToString();
            var actual = this.sampleController.All().Display();

            Assert.AreEqual(expected, actual);
        }