public void Configurar_novo_toggle_na_service_rota_toggle_valido() { var retornoCreateToggle = CreateToggle(ToggleMock.ToggleValido(), new List <int>() { 2 }); var retornoCreateServiceRotaToggle = CreateServiceRotaToggle(ServiceRotaToggleMock.ServiceRotaToggleValido(), retornoCreateToggle.Response.Id); Assert.Equal(HttpStatusCode.Created, retornoCreateServiceRotaToggle.HttpStatusCode); }
public ServiceRotaToggle Create_valido() { var toggleMock = ToggleMock.ToggleValido(); var serviceRotaToggleMock = ServiceRotaToggleMock.ServiceRotaToggleValido(); serviceRotaToggleMock.Id = 0; var retorno = Create(serviceRotaToggleMock, toggleMock.Id); Assert.Equal(HttpStatusCode.Created, retorno.HttpStatusCode); return(retorno.Response); }