public void Dashboard_NoOrder_ShouldBeNotFound() { //arrange _controller.MockCurrentUserAndRole(_transferee.Id, _transferee.UserName, UserRoles.Transferee); //assert var result = _controller.DashboardPartial("Not an order!"); result.Should().BeOfType <HttpStatusCodeResult>(); var codeResult = result as HttpStatusCodeResult; codeResult.StatusCode.Should().Be((int)HttpStatusCode.NotFound); }