public void should_use_NewRoomModel_when_creating_a_new_chat_room()
        {
            var newRoom = new NewRoomModel{Name = "BetaBeers"};

            var response = _browser.Get("/api/rooms/list", with =>
            {
                with.HttpRequest();
                with.Header("Accept", "application/json");
                with.Header("Content-Type", "application/json");
                with.Body(JsonConvert.SerializeObject(newRoom));
            });

            Assert.Equal(HttpStatusCode.OK, response.StatusCode);
        }
        public void creating_a_new_chat_room_should_return_a_RoomViewModel()
        {
            var newRoom = new NewRoomModel { Name = "BetaBeers" };

            var response = _browser.Post("/api/rooms/new", with =>
            {
                with.HttpRequest();
                with.Header("Accept", "application/json");
                with.Header("Content-Type", "application/json");
                with.Body(JsonConvert.SerializeObject(newRoom));
            });

            var content = response.Body.DeserializeJson<RoomViewModel>();

            Assert.Equal("BetaBeers", content.Name);
        }