public void GetByUsernameNegative() { var repo = new Mock <RoomsRep>(db); RoomsController controller = new RoomsController(repo.Object); var data = controller.Get1(08); var result = data as ObjectResult; Assert.AreEqual(400, result.StatusCode); }